在一個系統中共存Python2、python3的時候,pip、pip2、pip3使用的時候會報錯:
c:\Python35\Scripts>pip3
Fatal error in launcher: Unable to create process using '"'
解決方法:
python3:
python3 -m pip install --upgrade pip
python2:
python2 -m pip install --upgrade pip
注意:python2, python3共存時,將python安裝目錄下的python.exe改成對應的python2.exe,python3.exe
使用以上命令有可能會報錯,是因為網絡問題,需要翻牆即可解決(下圖所示):