1. 程式人生 > >mac使用easy_install安裝pip時報錯 ImportError: No module named extern

mac使用easy_install安裝pip時報錯 ImportError: No module named extern

1.首先根據以下步驟安裝pip:

1.Install easy_install

curl https://bootstrap.pypa.io/ez_setup.py -o - | sudo python

2.Install pip

sudo easy_install pip

3.Now, you could install external modules. For example

pip install regex # This is only an example for installing other modules

作者:yeller
連結:https://www.jianshu.com/p/f4b78fc5b163
來源:簡書
簡書著作權歸作者所有,任何形式的轉載都請聯絡作者獲得授權並註明出處。 2.執行sudo easy_install pip的時候報錯,大概意思就是ImportError: No module named extern,解決辦法如下兩個步驟:

先執行 :

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

 

再執行

sudo python get-pip.py

參考自:http://stackoverflow.max-everyday.com/2017/09/sudo-easy_install-pip-importerror-no-module-named-extern-mac-os-x/