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

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

    I had this problem, due to my own fault but hopefully this may help someone else who makes this same mistake.

    I'm using python 3 on Linux Ubuntu, during registration I issued the setup command using sudo! The result was the .pypirc file in my home directory was owned by root and wasn't readable when trying to perform a module upload immediately after as a none privileged user.

    By changing the ownership of the file to myself, the issue was resolved.

提交回复
热议问题