pip总结
配置
- linux/mac配置文件地址:
~/.pip/pip.conf
- windows配置地址:
%APPDATA%\pip\pip.ini
or%HOME%\pip\pip.ini
,实测为前者
配置源:
[global]
timeout = 60
index-url = https://pypi.douban.com/simple
问题:Permission denied: '/.local'
报错:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/.local'
Check the permissions.
权限问题,请使用root用户安装,如果在jenkins中启动docker请使用:
withDockerContainer(args: '-u root', image: 'ubuntu:latest') {}
问题: ERROR: Cannot uninstall 'certifi'.
报错:
It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
certifi是conda自己的包,所以要先用conda进行升级:
/usr/local/miniconda3/bin/conda install -q -y certifi>=2020.06.20