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/

猜你喜欢

转载自blog.csdn.net/u013957017/article/details/80818815