The names and locations of the configuration files vary slightly across platforms. You may have per-user, per-virtualenv or site-wide (shared amongst all users) configuration:
Per-user:
...
On macOS the configuration file is $HOME/Library/Application Support/pip/pip.conf if directory $HOME/Library/Application Support/pip exists else $HOME/.config/pip/pip.conf.
There are also a legacy per-user configuration file which is also respected, these are located at:
On Unix and macOS the configuration file is: $HOME/.pip/pip.conf
额外的服务器使用可以保存在配置文件
pip.conf
(或者在Windows上是pip.ini
)中。既然你说你在MacOS上,你似乎找到了正确的位置(根据official docs):找到配置文件,用编辑器打开它并注释掉(或删除)设置
index-url
/extra-index-url
选项的行。在相关问题 更多 >
编程相关推荐