pip
pip 镜像源配置与包管理技巧
临时指定
pip install pythonModuleName -i https://pypi.douban.com/simple
永久指定
windows
在 c:/windows/user/your-name/pip/ 下,新建文件 pip.ini:
[global]
trusted-host=mirrors.tools.huawei.com
index-url=http://mirrors.tools.huawei.com/pypi/simple/
如果找不到这个文件夹,就新建一个。
在有些 winodws 电脑中,可能不是这个文件夹,那么快速找到这个文件夹的方法是:在 windows 的资源管理器中输入 %APPDATA%, 会跳转到一个文件夹下,然后在这个文件夹下面新建 pip 文件夹,然后新建 pip.ini 文件,输入一下内容:
[global]
timeout = 6000
index-url = https://pypi.douban.com/simple
trusted-host = pypi.douban.com
Linux
在 ~/.pip/ 下创建 pip.conf:
[global]
trusted-host=mirrors.tools.huawei.com
index-url=http://mirrors.tools.huawei.com/pypi/simple/ 修改历史10 次提交
- fix(wiki): clean all lint errors to enable strict CI (PR-3)xiaocheng··
9acd1f2 - refactor: reorganize documentation structure and update Navbar componentxiaocheng··
e7d22e5 - chore(project): clean up obsolete configuration and build artifactsxiaocheng··
d659171 - new struct for lblogsxiaocheng··
6ea1ca2 - move blogs to docsxiaocheng··
a8edecd - updatexiaocheng··
fafb44b - update some blogchenweigao··
6fef9cc - init v3chenweigao··
065a35c - 重构一些博客chenweigao··
9f96ab6