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

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

    Just found this page, which solves the issue:

    I also noticed that while it was asking me to save my login information, and I hit Y everytime, it still asked me for the username and password. It turned out that it was saving the information incorrectly as follows:

    [pypi]
    username:dcramer
    password:*******
    

    Changing it out to this solved the problems:

    [server-login]
    username:dcramer
    password:********
    

    The above content goes into the .pypirc file in the user's home directory.

    Ugh.. I think this may be a good time to give distribute a try..

提交回复
热议问题