2
修改 macOS 上的 easy_install 和 pip 为国内清华镜像源
source link: https://www.sulinehk.com/post/modify-easy_install-and-pip-for-china-tsinghua-mirror-on-macos/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
修改 macOS 上的 easy_install 和 pip 为国内清华镜像源
2019-05-30
本文介绍了如何通过修改 macOS 上的 easy_install 和 pip 的配置文件,设置为国内清华镜像源,从而加快速度。
easy_install
如果没有对应的文件,则需手动创建。
文件地址:
~/.pydistutils.cfg
替换成如下文本:
[easy_install]
index_url = https://pypi.tuna.tsinghua.edu.cn/simple
如果没有对应的文件,则需手动创建。
文件地址:
~/.pip/pip.conf
替换成如下文本:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK