“setup.py upload” is failing with “Upload failed (401): You must be identified to edit package information”

后端 未结 7 1542
悲&欢浪女
悲&欢浪女 2020-12-23 19:57

When running..

python setup.py sdist register upload

..I get the following output:

running register
We need to know who you         


        
7条回答
  •  再見小時候
    2020-12-23 20:06

    I changed [distutils] to [pypirc] as per the docs and this worked for me.

    Here is my ~/.pypirc file:

    [pypirc]
    index-servers =
        pypi
        pypitest
    
    [pypi]
    repository=https://pypi.python.org/pypi
    
    [pypitest]
    repository=https://testpypi.python.org/pypi
    
    [server-login]
    username:stav
    password:****
    

提交回复
热议问题