[报错解决] 关于windows下 使用Anaconda3安装的python无法使用ssl模块问题.关联pip无法下载https
2024-08-30 04:13:23
关联错误:
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Requirement already up-to-date: pip in d:\anaconda3\lib\site-packages (18.1)
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
关联错误2:
>>> import ssl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\ProgramData\Anaconda3\lib\ssl.py", line 101, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: DLL load failed: The operating system cannot run %1.
原因:找不到libeay32.dll.因为没有把anacoda3 dll库目录加到path
中
想正常使用需要把类似以下路径加入PATH中
C:\Anaconda3;
C:\Anaconda3\Scripts;
C:\Anaconda3\Library\bin
大多数人只加了 C:\Anaconda3;
和 C:\Anaconda3\Scripts;
所以才导致这个问题.
最新文章
- sublime-生成html1.0
- 写出易调试的SQL—西科软件
- C++ inline函数
- java Integer == 比较的小问题
- 简单ssh框架整合
- jQuery基础---filter()和find()
- Unity动态加载和内存管理(三合一)
- DIV+CSS布局问题:一个宽度不确定的DIV里面放三个水平对齐的DIV,左右两个DIV宽度固定为150px,中间那个DIV充满剩余的宽度
- [LeetCode][Python]17: Letter Combinations of a Phone Number
- Common Lisp Style Guide - Ariel Networks Labs
- Netty+Tomcat热部署端口占用解决办法(转)
- ubuntu apt-get update 连接不到指定的源
- iOS开发——UIAlertController
- ios中safari无痕浏览模式下,localStorage的支持情况
- nginx1.14.0版本高可用——keepalived双机热备
- 修改Linux系统默认编辑器
- 使用iconv进行编码gb2312转utf8 转码失败的坑
- Reactjs-JQuery-Omi-Extjs-Angularjs对比
- REST easy with kbmMW #21 – Delphi client stubs
- What does ->; do in clojure?