Home  >  Q&A  >  body text

Error 500 appears when uploading Python packaging code to PYPI. I would like to ask for advice.

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:

  1. use your existing login,

  2. register as a new user,

  3. have the server generate a new password for you (and email it to you), or

  4. 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.',

)

怪我咯怪我咯2712 days ago665

reply all(1)I'll reply

  • phpcn_u1582

    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

    reply
    0
  • Cancelreply