Python 如何将pypi设置为可信?

Python 如何将pypi设置为可信?,python,pypi,python-wheel,Python,Pypi,Python Wheel,我正在尝试使用Python轮子。当我执行pip install wheel时,它表示需求存在,但我得到了以下SSL错误: (base) C:\Users\xxxx\PycharmProjects\prepay_clone>pip install wheel Requirement already satisfied: wheel in c:\programdata\anaconda3\lib\site-packages (0.33.1) Could not fetch URL https:

我正在尝试使用Python轮子。当我执行
pip install wheel
时,它表示需求存在,但我得到了以下SSL错误:

(base) C:\Users\xxxx\PycharmProjects\prepay_clone>pip install wheel
Requirement already satisfied: wheel in c:\programdata\anaconda3\lib\site-packages (0.33.1)
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)'))) - skipping
起初我忽略了它,因为轮子似乎已经安装好了。但是,当我稍后运行
setup.py sdist bdist_wheel
时,它绝对不会输出任何内容


提前谢谢

为了回答您的问题,
--trusted host
标志告诉pip不要为指定的主机使用SSL。在公司网络上,我一直都有这个问题。我发现这种方法99%的时间都有效:

pip --trusted-host pypi.org --trusted-host files.pythonhosted.org install wheel

不过我不确定这是否是你的问题,皮普似乎在告诉你轮子已经安装好了。

@deblue太好了,很高兴我能帮忙。如果这回答了您的问题,您能将其标记为已接受的答案吗?谢谢