Python pip - zhongjiajie/zhongjiajie.github.com GitHub Wiki
- pin库majoy版本,指定安装版本:
mock-django~=0.6.10
: It means it will select the latest version of the package, greater or equal to 0.6.10, but still in the 0.6.* version, so it won't download 0.7.0 for example.
pip install --upgrade pip
- 先升级
pip``wheel``setuptools
然后在尝试一次 - 通过
wheel
包安装报错,不支持该平台.可以通过python -c "import pip; print(pip.pep425tags.get_supported())"
打印看看支持的wheel包类型,修改下载好的wheel包名称Cannot install package from wheel formatpip安装报错:is not a supported wheel on this platform
用pip
升级全部的软件包 Upgrading all packages with pip pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
,或者只挑选过期的升级 pip list --outdated --format=freeze | cut -d = -f 1 | xargs -n1 pip install -U