使用PIP窗口安装Python

发布于 2025-01-28 10:19:51 字数 764 浏览 1 评论 0原文

使用Windows的标准Python安装文件(3.9.12)。 安装文件具有内置的PIP安装选项:

由此产生的python没有pip。 然后,我尝试使用“ get-pip.py”文件直接安装PIP。 该动作导致:

警告:PIP配置了需要TLS/SSL的位置, 但是,python中的SSL模块不可用。警告:重试 (重试(总计= 4,连接= none,read = none,redirect = none,status = none)) 在连接后被sslerror断开(“无法连接到https url 因为SSL模块不可用。”)':/simple/pip/警告: 重试(重试(总计= 3,连接= none,read = none,redirect = none, status = none)))通过'sslerror断开连接(“无法连接到 https URL是因为SSL模块不可用。”)':/simple/pip/ 警告:重试(重试(总= 2,连接= none,read = none, redirect = none,status = none)))连接断开后 'sslerror(“由于SSL模块不是,无法连接到HTTPS URL 可用。”)':/simple/pip/错误:用户取消操作

我该怎么办?

Used the standard python installation file (3.9.12) for windows.
The installation file have a built in option for pip installation:
enter image description here

The resulting python is without pip.
Then I try to install pip directly by using "get-pip.py" file.
This action resulted in:

WARNING: pip is configured with locations that require TLS/SSL,
however the ssl module in Python is not available. WARNING: Retrying
(Retry(total=4, connect=None, read=None, redirect=None, status=None))
after connection broken by 'SSLError("Can't connect to HTTPS URL
because the SSL module is not available.")': /simple/pip/ WARNING:
Retrying (Retry(total=3, connect=None, read=None, redirect=None,
status=None)) after connection broken by 'SSLError("Can't connect to
HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None,
redirect=None, status=None)) after connection broken by
'SSLError("Can't connect to HTTPS URL because the SSL module is not
available.")': /simple/pip/ ERROR: Operation cancelled by user

What can I do?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

尤怨 2025-02-04 10:19:51

您可以尝试pip3python -m pip python3 -m pip 您可以检查已安装的Python版本。是3.9.12还是其他东西,如果不是.12,则应使用此 steps

You either could try pip3 or python -m pip or python3 -m pip you may check the installed python version. is it 3.9.12 or something else, and if it's not .12, you should set the new path to the Python with this steps

樱花坊 2025-02-04 10:19:51

通常,当我遇到任何类似的错误时,我会卸载整个Python并重新安装在复选框中允许/勾选的所有功能,然后开始工作。

Usually when I get any errors like these I will uninstall the whole Python and reinstall with all features allowed/ticked in the checkbox and it starts to work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文