pip 进行升级

1.一般升级

python -m pip install --upgrade pip

如果升级失败,用强制升级命令

python -m pip install -U --force-reinstall pip


Collecting pip
  Using cached pip-20.1-py2.py3-none-any.whl (1.5 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.1
    Uninstalling pip-20.1:
      Successfully uninstalled pip-20.1
Successfully installed pip-20.1

2.装包报错

pip install six
Requirement already satisfied: six in d:\program files\python3.6\lib\site-packages (1.12.0)
Could not build wheels for six, since package 'wheel' is not installed.

看执行解决似乎已经解决,但是新的问题又出现了 说wheel 没有被安装,接下来安装wheel

pip install wheel
Collecting wheel
  Downloading wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Installing collected packages: wheel
Successfully installed wheel-0.34.2

解决

你可能感兴趣的:(pip 进行升级)