将包发布到 Pypi 时,Python Twine、Certifi、请求失败

问题描述

我正在尝试使用 python twine 命令将 Pypi 包发布到 Python。但是,它在运行 twine 时失败了,并且出现了似乎指向 certifirequests 包的错误。任何人都可以帮忙吗?非常感激!我收到一个错误说:

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)

我打开了我的 --verbose 并确保我的密码被正确读取。

首先我尝试过:

twine upload --verbose .\dist\zwwgeodemo-0.0.1.tar.gz

第二次尝试:

twine upload --verbose .\dist\zwwgeodemo-0.0.1.tar.gz --cert C:\ProgramData\Anaconda3\envs\demo\Lib\site-packages\certifi\cacert.pem

错误如下:-

enter image description here

我正在使用 Windows 10,Python 版本 3.8.8,twine 版本 3.3.0,certifi 版本 2020.12.5,并请求版本 2.25.1 提前致谢!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...