在anaconda中使用pip
anaconda 下使用conda -install 报错
使用pip 在anaconda 下安装需要的包:
自带的anaconda 环境 下:
cd ./anaconda3/lib/python3.6/site-packages
我的版本是 python 3.6 所以是 /python3.6
在这里直接 pip install XXX 就可以
设置用清华的源下载
- 临时使用
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple XXXX
- 设为默认
pip install pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
参考清华源配置
还可以选择其他配置
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
手动下载 whl 包 可参考 链接