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

后端 未结 7 1555
悲&欢浪女
悲&欢浪女 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:29

    None of the changes to ~/.pypirc listed here worked for me.

    This worked for me, with no changes to ~/.pypirc. I added "-r https://www.python.org/pypi" to the command line:

    python setup.py register sdist upload -r https://www.python.org/pypi
    

    My ~/.pypirc looks like this

    [distutils]
    index-servers: pypi
    
    [pypi]
    username: dlink
    password: ******** (the real one)
    

提交回复
热议问题