2

修改 macOS 上的 easy_install 和 pip 为国内清华镜像源

 2 years ago
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.
neoserver,ios ssh client

修改 macOS 上的 easy_install 和 pip 为国内清华镜像源

2019-05-30

本文介绍了如何通过修改 macOS 上的 easy_install 和 pip 的配置文件,设置为国内清华镜像源,从而加快速度。

macOS Logo

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

文章作者 sulinehk

上次更新 2019-05-30

许可协议 CC BY-NC-ND 4.0

在 macOS 上制作 Windows 10 USB 启动盘

Go 语言闭包详解


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK