Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the simply-static domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6121
更改pip镜像源

更改pip镜像源

一、国内常用pip镜像源
http://pypi.douban.com/simple/ 豆瓣
http://mirrors.aliyun.com/pypi/simple/ 阿里
http://pypi.hustunique.com/simple/ 华中理工大学
http://pypi.sdutlinux.org/simple/ 山东理工大学
http://pypi.mirrors.ustc.edu.cn/simple/ 中国科学技术大学
https://pypi.tuna.tsinghua.edu.cn/simple/ 清华大学
http://pypi.hustunique.com/ 华中科技大学
http://mirrors.cloud.tencent.com/pypi/simple 腾讯
https://repo.huaweicloud.com/repository/pypi/simple/ 华为
二、使用方法(pip安装):
示例代码(安装requests库):

pip install -i http://pypi.douban.com/simple/ requests

若遇到信任问题可添加参数,如

pip install requests -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

永久修改pip源方法
Windows:新建 pip.ini 文件存放在 User\pip\pip.ini
Linux:新建pip.conf文件存放在 ~/.pip/pip.conf
内容如下

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