这篇文章将解除你使用python的pip install xxx
受到的网速限制,如果只是下载较小的第三方库,可以尝试pip --default-timeout=100 install -U xxx
。
一、Windows
- 找到python安装目录下的:Libsite-packagespipmodelsindex.py文件,将PYPI的值改为你所需要的镜像源即可,例如改为豆瓣镜像源:
#PyPI = Index('https://pypi.python.org/')
PyPI = Index('https://pypi.douban.com/')
二、Mac
- 在终端进入目录:
cd ~
- mac用户家目录中新建文件夹:
mkdir pip
- 然后在.pip 文件夹内新建一个文件 :
vi pip.conf
,并且写入阿里云镜像:
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
决策树算法实现
安装scipy失败提示lapack not found
算法复杂度分析中的符号(Θ、Ο、ο、Ω、ω)简介
VMware 注册码
chrome浏览器频繁卡死
dell装系统
关于scipy包的安装
pip安装python包时报字符编码错
linux中mv命令使用详解