I am trying to publish a python
package to Pypi
using Python
twine command. However, it failed when running twine and got errors that seems point to certifi and requests package. Can anyone help? Much appreciated! I get an error says:
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)
I turned on my --verbose and made sure my password was read in correctly.
First I tried:
twine upload --verbose .\dist\zwwgeodemo-0.0.1.tar.gz
Second I tried:
twine upload --verbose .\dist\zwwgeodemo-0.0.1.tar.gz --cert C:\ProgramData\Anaconda3\envs\demo\Lib\site-packages\certifi\cacert.pem
The errors looks like this:-
I am working on Windows 10, Python version 3.8.8, twine version 3.3.0, certifi version 2020.12.5, and requests version 2.25.1 Thank you in advance!