首頁  >  問答  >  主體

python打包程式碼上傳PYPI出現錯誤500,虛心求教

因為是新手,所以對程式碼故障問題不是很了解,本來按書上的操作進行的,但是在最後一步上傳到PYPI出現了錯誤500,下面是上傳時的代碼

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)>

下面再貼上setup程式碼,不知道是哪裡出錯了
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 天前668

全部回覆(1)我來回復

  • phpcn_u1582

    phpcn_u15822017-05-18 10:56:17

    現在pypi的這個介面已經不能使用了,但是透過pypi上表單的形式進行提交了,如果你想使用介面的方式提交的話,需要安裝twine才能使用:

    pip install twine

    具體操作可以參考上傳

    回覆
    0
  • 取消回覆