linux---之pip,conda下载速度慢,手动更换到国内的源

转载:https://blog.csdn.net/christianashannon/article/details/78874547

手动指定源:

在 pip 后面跟-i 来指定源,比如用豆瓣的源来安装 web.py 框架:

pip install numpy -i https://pypi.doubanio.com/simple/

注意后面要有 /simple/ 目录

推荐的源除了豆瓣之外,还推荐清华大学的tuna源:

pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple/

猜你喜欢

转载自blog.csdn.net/zxyhhjs2017/article/details/81460572