因為是新手,所以對程式碼故障問題不是很了解,本來按書上的操作進行的,但是在最後一步上傳到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:
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)>
下面再貼上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.',
)
現在pypi的這個介面已經不能使用了,但是透過pypi上表單的形式進行提交了,如果你想使用介面的方式提交的話,需要安裝twine才能使用:
具體操作可以參考上傳