安装包模块时,提示需要升级 pip
WARNING: You are using pip version 20.2.2; however, version 20.2.3 is available.
You should consider upgrading via the 'c:\users\administrator\appdata\local\programs\python\python36\python.exe -m pip install --upgrade pip' command.
直接输入指令时出现异常
python -m pip install --upgrade pip
ValueError: Unable to find resource t64.exe in package pip._vendor.distlib
试了以下几种解决方式
1. 卸载安装
python -m pip uninstall pip setuptools
pip3 install --upgrade pip
2. 更新
easy_install -U pip (一次成功)
升级后,安装指定版本的模块时又出现异常
ERROR: Could not install packages due to an EnvironmentError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'c:\\users\\administrator\\appdata\\local\\programs\\python\\python
36\\lib\\site-packages\\setuptools-39.1.0-py3.6.egg'
Consider using the `--user` option or check the permissions.
解决:
只需要python -m pip install --user --upgrade pip==9.0.3
只需要加一个 --user 在install的后面即可