Can't upload to PyPi with Twine

后端 未结 7 1182
自闭症患者
自闭症患者 2021-01-11 12:58

I\'m trying to upload a python package to PyPi, using the following commands:

pip install -e .
python setup.py bdist_wheel --universal
twine upload --reposit         


        
7条回答
  •  失恋的感觉
    2021-01-11 13:11

    EDIT: if you're using Windows, check my other suggestion

    It looks like some sort of error with the account I was using. The following steps fixed it for me:

    1. Create a new account
    2. Upload the package with the new account with twine upload dist/*
    3. Add the previous account (that you originally wanted to upload with) to the package as an owner

    Also be aware that the test pypi server --repository-url https://test.pypi.org/legacy/, requires a different account to be created from the live server --repository-url https://upload.pypi.org/legacy/

提交回复
热议问题