Python 无法将模块上载到PyPi

Python 无法将模块上载到PyPi,python,python-3.4,pypi,Python,Python 3.4,Pypi,我用Python创建了一个简单的模块,名为nester.py: 源代码: """ This function prints a Python list, which may contain nested lists, in a sweet format. This function takes one required and two optional parameters. Required: ========= 1> bigList - The list that may

我用Python创建了一个简单的模块,名为
nester.py

源代码:

"""
This function prints a Python list, which may contain nested lists,
in a sweet format.
This function takes one required and two optional parameters. 

Required:
=========
    1> bigList - The list that may or may not contain nested lists.

Optional:
=========
    1> level - The level of the indent.
    2> indent - If a list is to be indented or not.    
"""
def nester(bigList, level = 0, indent = False):

    for items in bigList:                    # Traverse through each item.
        if isinstance(items, list):          # If the current item is a nested list,
            nester(items, level + 1, indent) # Recurse with the nested list and +1 indent level.
        else:                                # Else,
            if indent:                       # Check if indent is desired,
                for nest in range(level):    
                    print("\t", end = '')    # Print `level` numbers of '\t' characters.  
            print(items)                     # Finally print atomic item in the list.  
我希望将此模块上传到
因此,我创建了以下
setup.py

from distutils.core import setup

setup(
          name = "nester",
          version = "1.0.0",
          py_modules = ["nester"],
          author = "Aditya R.Singh",
          author_email = "adipratapsingh.aps@gmail.com",
          url = "http://adirascala.site50.net",
          description = "A sweet printer of nested Python lists."  
     )  
这是我第一次尝试在
PyPi
上上传内容
现在,我从我的Macbook pro终端输入:

python setup.py register
这就是我得到的结果:

Adityas-MacBook-Pro:nester aditya$ 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: AdiSingh
Password: 
Registering nester to https://pypi.python.org/pypi
Server response (403): You are not allowed to store 'nester' package information  
Adityas-MacBook-Pro:nester aditya$ 
为什么不允许我存储包裹信息?我确实已经用用户名
AdiSingh
注册了PyPi,并确认了我的注册

有什么帮助吗?
我错过了什么?

提前谢谢

首先,如果您只是在玩,那么应该使用,PyPI主站点通常是为真正的模块保留的。您需要单独登录,只需阅读链接即可


第二,显示已经有一个具有该名称的包(以及几十个类似的包),这就是为什么会出现错误。在上传之前,你需要为你的软件包选择一个唯一的名称。

首先,如果你只是在玩,你应该使用,PyPI主站点通常是为真正的模块保留的。您需要单独登录,只需阅读链接即可


第二,显示已经有一个具有该名称的包(以及几十个类似的包),这就是为什么会出现错误。上传前,您需要为包选择一个唯一的名称。

让我猜猜,您正在阅读Head-First Python?@MattDMo是的,我是我的朋友:)让我猜猜,您正在阅读Head-First Python?@MattDMo是的,我是我的朋友:)