1
我突然遇到了上傳軟件包的問題。我使用之前的註冊包然後上傳的範例。現在,好像註冊突然不再需要,現在我需要一個〜/ .pypirc文件。我給自己定.pypirc像這樣(從https://docs.python.org/2/distutils/packageindex.html#pypirc):無法上傳到PyPI:<urlopen錯誤[Errno 1] _ssl.c:510:錯誤:14077438:SSL例程:SSL23_GET_SERVER_HELLO:tlsv1警報內部錯誤>
[distutils] # this tells distutils what package indexes you can push to
index-servers =
pypi
pypitest
[pypi]
repository: https://pypi.python.org/pypi
username: *USERNAME*
password: *PASSWORD*
[pypitest]
repository: https://testpypi.python.org/pypi
username: *USERNAME*
password: *PASSWORD*
不過,我一直有問題:
...
Creating tar archive
removing 'jsonpare-0.2.10' (and everything under it)
running upload
Password:
Submitting dist/jsonpare-0.2.10.tar.gz to https://upload.pypi.org/legacy/
error: <urlopen error [Errno 1] _ssl.c:510: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error>
它提示我輸入密碼,即使我已經提供的密碼配置,我每次都會遇到SSL問題。
我在做什麼錯?