PyPI换源
PyPI 鏡像
方法一
簡介
PyPI (Python Package Index) 是 Python 編程語言的軟件存儲庫。開發(fā)者可以通過 PyPI 查找和安裝由 Python 社區(qū)開發(fā)和共享的軟件,也可以將自己開發(fā)的庫上傳至 PyPI 。
配置方法
a. 找到下列文件(windows目錄:C:\Users\Administrator)
~/.pip/pip.confb. 在上述文件中添加或修改:
[global] index-url = https://mirrors.aliyun.com/pypi/simple/[install] trusted-host=mirrors.aliyun.com方法二
直接運行這個命令就能配置鏡像了,不用手動創(chuàng)建文件。pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
總結
- 上一篇: Python爬虫应用场景大全
- 下一篇: 二值图像信息隐藏