Can't Upload Package To Pypi
I've been trying to upload a package to PyPi. I receive this error every time. Upload failed (403): Invalid or non-existent authentication information. error: Upload failed (403):
Solution 1:
python setup.py register
and python setup.py upload
are deprecated. Do not use them.
Follow the instructions in the Python Packaging Guide:
- Create an account on PyPI if you haven't yet.
- Create the source distribution and wheels for your package:
python setup.py sdist bdist_wheel
- Install twine (or make sure you have version 2.0 or newer):
pip install twine
- Check your distribution files for errors:
twine check dist/*
- (Optional) Upload to the PyPI test server first (note: separate user registration required):
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
- Upload to PyPI:
twine upload dist/*
Post a Comment for "Can't Upload Package To Pypi"