使用PIP窗口安装Python
使用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:
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试
pip3
或python -m pip
python3 -m pip 您可以检查已安装的Python版本。是3.9.12还是其他东西,如果不是.12,则应使用此 stepsYou either could try
pip3
orpython -m pip
orpython3 -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通常,当我遇到任何类似的错误时,我会卸载整个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.