pip 安装gevent时报出这些错:
重点看这个:ERROR: Failed building wheel for cffi
6篇 pip 相关的文章
install pip-autoremove
pip install pip-autoremove
remove "somepackage" and it's dependencies:
pip-autoremove somepackage -y
一行命令更新旧的pip包
pip list --outdated --format freeze|awk -F'=' '{print $1}'|xargs pip install --upgrade
~/.pip/pip.conf
配置参考:
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
在目录C:\Users\用户名\
下新建目录pip, 并在pip目录中新建pip.ini, 注意文件后缀。文件内容:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
附国内其它源:
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
pip install -e /path/to/package
用virtual env后 pip安装一些个库可能会报这个
Could not fetch URL https://pypi.python.org/simple/*/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) - skipping
原因在于pip版本过低了,我的python2.7 用env后就是8.0,可以用下面的方法更新再重试pip install
curl https://bootstrap.pypa.io/get-pip.py | python