ubuntu安装python3.8_科学网—Ubuntu16.04安装Python3.8.5问题及解决方法 - 陈超的博文...

Ubuntu16.04安装Python3.8.5:

安装编译之后出现apt-get错误You might want to run 'apt-get -f install' to correct these:

The following packages have unmet dependencies:

libxml-parser-perl : Depends: libwww-perl but it is not going to be installed

printer-driver-gutenprint : Depends: cups (>= 1.3.0) but it is not going to be installed

printer-driver-splix : Depends: cups (>= 1.5.0-3~) but it is not going to be installed

python-httplib2 : Depends: ca-certificates but it is not going to be installed

python-pip : Depends: ca-certificates but it is not going to be installed

Recommends: python-dev-all (>= 2.6) but it is not installable

Recommends: python-wheel but it is not going to be installed

python-requests : Depends: ca-certificates but it is not going to be installed

python-requests-whl : Depends: ca-certificates but it is not going to be installed

python3-httplib2 : Depends: ca-certificates but it is not going to be installed

python3-requests : Depends: ca-certificates but it is not going to be installed

ruby1.9.1 : Depends: libruby1.9.1 (= 1.9.3.484-2ubuntu1.2) but it is not going to be installed

ssh-import-id : Depends: ca-certificates but it is not going to be installed

vim-gtk : Depends: libruby1.9.1 (>= 1.9.2.0) but it is not going to be installed

E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

造成这种问题的原因是因为在Ubuntu下,例如Ubuntu 14.04或者16.04一般是不会出现broken dependencies,或者出现unmet dependencies, 但是如果我们使用dpkg强制安装了某些deb包,或者在build-dep的是否手动更改了某些Packages的文件和版本时, 那么在再次使用apt-get install或者build-dep来安装packages的时就很可能出现上面出现过的问题。

我们可以根据提示执行下命令,如果问题照旧,那我们尝试执行一下命令

解决办法如下:

first stepsudo apt-get -f install

sudo apt-get update

sudo apt-get upgrade

second step

sudo apt-get update

sudo apt-get clean

sudo apt-get autoremove

third step

sudo apt --fix-broken install

sudo apt-get update && sudo apt-get upgrade

sudo dpkg --configure -a

sudo apt-get install -f

连接地址:

最后解决:

ImportError: No module named _ssl问题

转载本文请联系原作者获取授权,同时请注明本文来自陈超科学网博客。

链接地址:http://blog.sciencenet.cn/blog-858128-1246854.html

上一篇:北斗物联

下一篇:pip3 install --user pipenv出现Traceback (most recent call last

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值