赞
踩
最近安装一些python库,总是安装提示以下错误,让人一脸懵逼:
- ERROR: Could not find a version that satisfies the requirement XXX (from v
- ersions: none)
- ERROR: No matching distribution found for XXX
- WARNING: There was an error checking the latest version of pip.
解决以上问题其实非常简单:
pip install 库包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
在安装库的时候,临时需要用到某个镜像,这里以清华大学镜像为例下载pandas库:
pip install pandas -i https://pypi.tuna.tsinghua.edu.cn/simple/
豆瓣:http://pypi.douban.com/simple/
阿里云:http://
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。