python更换pip和easy_install源
· 技术积累 · Python pip

pip和easy_instal 更换国内阿里云源,加速下载

更换pip源

#/root目录下创建一个.pip目录

[root@localhost ~]# mkdir /root/.pip
[root@localhost ~]# vim /root/.pip/pip.conf
#内容如下:

[global]
index-url=http://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host=mirrors.aliyun.com

更换easy_install源

#/root目录下创建一个.pydistutils.cfg文件

[root@localhost ~]# vim .pydistutils.cfg
#内容如下:

[easy_install]
index-url=http://mirrors.aliyun.com/pypi/simple/
find-links=http://mirrors.aliyun.com/pypi/simple/

本文最后更新时间 2024-03-30
文章链接地址:
https://me.jinchuang.org/archives/538.html
本站文章除注明[转载|引用],均为本站原创内容,转载前请注明出处
使用腾讯云CDN的SDK 用脚本去刷新URL缓存
pip 安装错误 Command "python setup.py egg_info" failed with error code
Linux命令行界面使用Python+Selenium+Chrome对网页截图
warnings.warn('Selenium support for PhantomJS has been deprecated, please use headless

Centos7 升级内核 kernel-ml-4.18.9版本

Xmanager6安装使用 附序列号和补丁

我要留言