python3.8.5是python3吗_科学网-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問題
轉載本文請聯系原作者獲取授權,同時請注明本文來自陳超科學網博客。
收藏
分享
分享到:
總結
以上是生活随笔為你收集整理的python3.8.5是python3吗_科学网-Ubuntu16.04安装Python3.8.5问题及解决方法-陈超的博文的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 上传到docker hub_docker
- 下一篇: python有多少关键字_Python挖