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

解决

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。