python3.8.5是python3吗_科学网-Ubuntu16.04安装Python3.8.5问题及解决方法-陈超的博文
Ubuntu16.04安裝Python3.8.5:
安裝編譯之后出現(xiàn)apt-get錯(cuò)誤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).
造成這種問(wèn)題的原因是因?yàn)樵赨buntu下,例如Ubuntu 14.04或者16.04一般是不會(huì)出現(xiàn)broken dependencies,或者出現(xiàn)unmet dependencies, 但是如果我們使用dpkg強(qiáng)制安裝了某些deb包,或者在build-dep的是否手動(dòng)更改了某些Packages的文件和版本時(shí), 那么在再次使用apt-get install或者build-dep來(lái)安裝packages的時(shí)就很可能出現(xiàn)上面出現(xiàn)過(guò)的問(wèn)題。
我們可以根據(jù)提示執(zhí)行下命令,如果問(wèn)題照舊,那我們嘗試執(zhí)行一下命令
解決辦法如下:
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問(wèn)題
轉(zhuǎn)載本文請(qǐng)聯(lián)系原作者獲取授權(quán),同時(shí)請(qǐng)注明本文來(lái)自陳超科學(xué)網(wǎng)博客。
收藏
分享
分享到:
總結(jié)
以上是生活随笔為你收集整理的python3.8.5是python3吗_科学网-Ubuntu16.04安装Python3.8.5问题及解决方法-陈超的博文的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 上传到docker hub_docker
- 下一篇: python有多少关键字_Python挖