几个小时以来,我一直在努力解决pypi的最新变化,但我找不到办法。我通常运行python setup.py register; python setup.py bdist_wheel sdist upload的方法目前在出现SSL错误时失败:
(py27_test) [mpenning@mudslide ciscoconfparse]$ python setup.py register; python setup.py bdist_wheel sdist upload
...
Submitting /home/mpenning/ciscoconfparse/dist/ciscoconfparse-1.3.2-py2.py3-none-any.whl to https://upload.pypi.org/legacy/
error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>FWIW 麻绳也会因SSL错误而失败。我尝试下载upload.pypi.org的SSL证书,但不知怎么的,twine upload --cert ~/.certs/uploadpypiio.pem dist/*也失败了,出现了SSL错误:
(py27_test) [mpenning@mudslide ciscoconfparse]$ twine upload --cert ~/.certs/uploadpypiio.pem dist/*
Uploading distributions to https://upload.pypi.org/legacy/
Uploading ciscoconfparse-1.3.2-py2.py3-none-any.whl
SSLError: HTTPSConnectionPool(host='upload.pypi.org', port=443): Max retries exceeded with url: /legacy/ (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))
(py27_test) [mpenning@mudslide ciscoconfparse]$这个问题以前在我身上发生过,但是我能够通过手动上传我的源发行版并转到pypi.org来解决这个问题;然而,即使这个方法也失败了(它直到2018年1月29日才开始工作)。当我尝试手动上传软件包时,他们似乎已经禁用了它。


现在看来,我完全没有办法修复这个破损。
问题
有什么方法可以手动上传包到pypi,但我不知怎么错过了?或者,如果有什么缠绕的魔法我错过了,我愿意听到它。我在虚拟环境中的Debian8.1上运行Python2.7.9。
我有:
发布于 2018-02-11 02:33:01
通常ssl错误是由时间错误引起的。因此,在大多数情况下,同步化时间会解决这个问题。
https://stackoverflow.com/questions/48727531
复制相似问题