ModuleNotFoundError: No module named 'pip
python -m ensurepip
安装时出错
ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'D:\\Softwares\\Anaconda3\\Scripts\\pip3.exe' -> 'D:\\Softwares\\Anaconda3\\Scripts\\pip3.exe.deleteme'
Consider using the `--user` option or check the permissions.
根据提示修改为
python -m ensurepip --user
安装成功
安装其他时出现提示pip太低要更新
WARNING: Ignoring invalid distribution -ip (d:\softwares\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\softwares\anaconda3\lib\site-packages)
WARNING: You are using pip version 22.0.4; however, version 22.3.1 is available.
You should consider upgrading via the 'D:\Softwares\Anaconda3\python.exe -m pip install --upgrade pip' command.
根据提示
D:\Softwares\Anaconda3\python.exe -m pip install --upgrade pip
安装出错
修改为
D:\Softwares\Anaconda3\python.exe -m pip install --upgrade pip --user
安装成功
或者使用
python -m pip install --upgrade pip
如果有--user提示可试
python -m pip install --upgrade pip --user