程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Ubuntu 16.04 Python and PIP3 crash problems encountered after upgrading python3.6

編輯:Python

Originally came with python2.7 and 3.5, Yes 3.6 Then suddenly the system software update could not be opened ,3.5 Version cannot be found , There are also interpreter errors ,

. You can use the repair command :

I downloaded it from the official website 3.5 Then use the repair command , Now you can use

sudo apt-get install --reinstall python

Or try : 

sudo update-alternatives --remove-all python
sudo ln -sf /usr/bin/python2.7 /usr/bin/python

Lessons learned : Don't play around , Do not disturb the settings in the system , Do not delete the system's own python edition

 

original text :https://blog.csdn.net/u011648373/article/details/82557081 

use pip3 Errors may be reported during module installation :


Traceback (most recent call last):
File "/usr/local/bin/pip3", line 7, in <module>
from pip._internal import main
ModuleNotFoundError: No module named 'pip._internal'

terms of settlement ( edit /usr/local/bin/pip3 file ):

sudo vim /usr/local/bin/pip3
take from pip._internal import main Change to from pip import main

FALSE pip3:

Correct pip3:


 


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved