pip cannot import name main

这是python pip的一个bug:https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1306991

方法一 使用easy_install

sudo easy_install freeze

方法二 从pip官网直接重装,重装前先卸载ubuntu的pip包

sudo apt-get remove python-pip
sudo apt-get autoremove

wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate

sudo python get-pip.py


URL link:

http://suanfazu.com/t/pip-install-importerror-cannot-import-name-incompleteread/17

猜你喜欢

转载自blog.csdn.net/cyuyandashen/article/details/80293029