pypi pack and upload

upload 403 error need to change the name in setup.py

upload 400 error need to change the version of the same name pkg

register: python setup.py register 

upload to test pypi: 

python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* 

install: 

python -m pip install --index-url https://test.pypi.org/simple/ example-pkg

 example

python -m pip install --extra-index-url https://test.pypi.org/simple/ XXX  --no-cache-dir 
原文地址:https://www.cnblogs.com/demian/p/10633034.html