我是Python的新手,并试图> pip install linkchecker在Windows 7上.一些说明:
> pip install scrapy也会导致SSL错误.python而pip直到我安装3.4.1中不具备的命令行.> pip search linkchecker作品.也许这是因为pip搜索不会验证网站的SSL证书.以下是运行后我的pip.log的内容pip install linkchecker:
Downloading/unpacking linkchecker
Getting page https://pypi.python.org/simple/linkchecker/
Could not fetch URL https://pypi.python.org/simple/linkchecker/: connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)
Will skip URL https://pypi.python.org/simple/linkchecker/ when looking for download links for linkchecker
Getting page https://pypi.python.org/simple/
Could not fetch URL https://pypi.python.org/simple/: connection error: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries …Run Code Online (Sandbox Code Playgroud) 我刚刚从python.org安装了Python3,并且无法安装包pip.根据设计,网络上有一个中间人的数据包检测设备,通过使用自己的证书重新签名所有ssl连接来检查所有数据包(包括ssl).部分GPO将自定义根证书推送到Windows密钥库.
使用Java时,如果我需要访问任何外部https站点,我需要手动更新JVM中的cacerts以信任自签名CA证书.
我如何为python实现这一目标?现在,当我尝试安装软件包时pip,可以理解,我得到了很多[SSL: CERTIFICATE_VERIFY_FAILED]错误.
我意识到我可以使用--trusted-host参数忽略它们,但我不想为我正在尝试安装的每个包执行此操作.
有没有办法更新python使用的CA证书存储?
无论我做什么我都会收到此错误
C:\Users\MyPc>conda update --all
Solving environment: failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/free/win-64/repodata.json.bz2>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/free/win-64/repodata.json.bz2 (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not …Run Code Online (Sandbox Code Playgroud) 我有一些问题让conda尊重我的代理声明.我已经从conda文档中的示例中复制了代理字符串,并用自己的url替换了url.我还导出了HTTP_PROXY和HTTPS_PROXY以及我知道工作的字符串.我的〜/ .condarc文件看起来像:
proxy_servers:
http: http://<proxyaddress>:<port>
https: https://<proxyaddress>:<port>
Run Code Online (Sandbox Code Playgroud)
有什么建议?
编辑:conda版本:3.14.1
看起来代理字符串实际上很好.最初没有出现的真正问题是,由于我们的公司代理,conda没有使用我需要的ca-cert.我尝试安装软件包时出现的特定错误是:
Error: Connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581): ...
Run Code Online (Sandbox Code Playgroud) 我想在我的python程序中安装wordcloud.我正在做以下步骤.请告诉我我做错了什么 -
我从这里下载了wordcloud软件包https://github.com/amueller/word_cloud
将其复制并粘贴到Anaconda3文件夹中.
打开Anaconda命令提示符并提供以下命令"pip install wordcloud".
显示以下错误 -
请让我知道该怎么做.