赞
踩
python安装某些包时,经常下载速度慢,或者出错。
解决办法:使用pip国内源
#这里我们用豆瓣源: https://pypi.tuna.tsinghua.edu.cn/simple/
#可以在使用pip的时候加参数 -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install django -i https://pypi.tuna.tsinghua.edu.cn/simple/
如果要永久使用可以在’ C:\Users\某某某\pip
路径下,创建’ pip.ini
文件
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple/
1、先去pipy上下载离线包
2、(1)python setup.py
(2)安装whl包,pip install xxx.whl
3、安装某包出错
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。