Because I am a newbie, I don’t know much about code failure issues. I originally followed the instructions in the book, but an error 500 occurred when uploading to PYPI in the last step. The following is the code when uploading
RANGEdeMacBook-Pro:beerkf range$ python3 setup.py register
running register
running check
We need to know who you are, so please choose either:
use your existing login,
register as a new user,
have the server generate a new password for you (and email it to you), or
quit
Your selection [default 1]:
1
Username: RangeM
Password:
Registering beerkf to https://upload.pypi.org/legacy/
Server response (500): <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED ] certificate verify failed (_ssl.c:749)>
I’ll paste the setup code below, I don’t know what went wrong
from distutils.core import setup
setup(
name ='beerkf',
version ='1.0.0',
py_modules ='beerkf',
author ='hfpython',
author_email ='hfpython@headfirstlabs.com',
url ='http://www.headfirstlabs.com',
description ='A simple print function for nested list.',
)
phpcn_u15822017-05-18 10:56:17
This interface of pypi can no longer be used, but it can be submitted through a form on pypi. If you want to submit using the interface, you need to install twine to use it:
pip install twine
For specific operations, please refer to Upload