解决Python Pip 速度慢

解决Python Pip 速度慢

解决 Python 安装库时速度慢或者超时问题

设置超时时间

1
pip --default-timeout=1000 install jieba

-i 指定源

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

更改默认设置

~/.pip/pip.conf
1
2
3
4
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com

  LinuxPython

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×