当我想在python中安装pip时,我得到了这个erorr?有解决办法吗?

2024-10-03 06:20:02 发布

您现在位置:Python中文网/ 问答频道 /正文

当我尝试安装pip时,我得到了这个erorr,我尝试卸载并再次安装python,但没有任何结果。 例如,如果我想通过pip安装random模块,我会遇到以下错误:

C:\Users\nadzi>pip install random
ERROR: Could not find a version that satisfies the requirement random (from versions: none)
ERROR: No matching distribution found for random
WARNING: You are using pip version 21.1.3; however, version 21.2.1 is available.
You should consider upgrading via the 'C:\Users\nadzi\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip' command.

Tags: 模块installpiptheyouversion错误not