Python pip

安装好pip使用时遇到了问题:

pip
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
 from pip import main
ImportError: cannot import name main

在网上搜到一篇帖子,重新安装解决了问题,转贴过来

原文链接

在ubuntu上使用pip的过程中遇到了ImportError: cannot import name 'IncompleteRead'错误,

不论输入pip还是pip3或者pip3.4都一样,网上得知这是python pip的一个bug。 去网上找了很多方法,有人说用sudo easy_install -U pip,结果依然不行,下载不了,需要用国内源了。国内一些pypi镜像源:

阿里云 速度最快 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) http://pypi.douban.com/simple/ Python官方 https://pypi.python.org/simple/ v2ex http://pypi.v2ex.com/simple/ 中国科学院 http://pypi.mirrors.opencas.cn/simple/ 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

终端执行

sudo easy_install -U -i http://pypi.douban.com/simple/ pip

猜你喜欢

转载自my.oschina.net/u/2561528/blog/1806496