在windows的dos窗口执行发布模块nester到pypi操作,会报错,过程如下:
W:\VM_share\my_HeadFirstPython\chapter2\nester>python 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: page1999
Password:
Registering nester to https://pypi.python.org/pypi
Server response (403): You are not allowed to store 'nester' package information
原因:nester这个模块名称已经有人在PyPi发布过了,所以不给发布,改名nester-lhb,就可以了。
过程如下:
W:\VM_share\my_HeadFirstPython\chapter2\nester-lhb>python 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: page1999
Password:
Registering nester-lhb to https://pypi.python.org/pypi
Server response (200): OK
I can store your PyPI login so future submissions will be faster.
(the login will be stored in C:\Users\cn518485\.pypirc)
Save your login (y/N)?y
转载于:https://blog.51cto.com/leesbing/1787630