繁体   English   中英

Anaconda 和 Windows 10 上的 jupyter 笔记本

[英]Anaconda and jupyter notebook on Windows 10

它似乎不起作用。 我得到几个不同的错误。

系统:Windows 10 Anaconda:64位,最新下载。 Anaconda 3. python:3.9

  1. 由于某种原因 ssl 无法加载。 网上提出的所有解决方案我都试过了,比如在PATH变量中加入Anaconda3、Anaconda3\bin、Anaconda3\Lib。 将 Anaconda3\pkgs\openssl-1.1.1n-h2bbff1b_0\Library\bin 添加到 PATH 变量中。

  2. 我确实有 libssl-1_1-x64.dll。

我得到的错误:

  1. Anaconda Navigator 和 jupyter notebook 启动脚本都没有做任何事情。 他们只是失败而没有任何错误。

  2. 我唯一的线索是当我启动 python 命令提示符并尝试“导入 ssl”时。 我收到以下错误。

    'MySQL' 不是内部或外部命令、可运行程序或批处理文件。 'MySQL' 不是内部或外部命令、可运行程序或批处理文件。

    (基础)C:\Users\kadambi>python Python 3.9.12(主要,2022 年 4 月 4 日,05:22:27)[MSC v.1916 64 位(Windco 上的 AMD64)2]:类型:帮助”、“版权”、“学分”或“许可”以获取更多信息。

    import ssl Traceback (最近一次调用最后一次): File "", line 1, in File "C:\Software\Anaconda3\lib\ssl.py", line 98, in import _ssl # 如果我们不能导入它,让错误传播 ImportError: DLL load failed while importing _ssl: 找不到指定的过程。

当我尝试 pip 安装 pyopenssl 时,这是我得到的错误。

(base) C:\Users\kadambi>pip install pyopenssl
Defaulting to user installation because normal site-packages is not writeable
WARNING: pip is configured with locations that require TLS/SSL, however the ss
module in Python is not available.
Requirement already satisfied: pyopenssl in c:\software\anaconda3\lib\site-pac
ges (21.0.0)
Requirement already satisfied: six>=1.5.2 in c:\software\anaconda3\lib\site-pa
ages (from pyopenssl) (1.16.0)
Requirement already satisfied: cryptography>=3.3 in c:\software\anaconda3\lib\
te-packages (from pyopenssl) (3.4.8)
Requirement already satisfied: cffi>=1.12 in c:\software\anaconda3\lib\site-pa
ages (from cryptography>=3.3->pyopenssl) (1.15.0)
Requirement already satisfied: pycparser in c:\software\anaconda3\lib\site-pac
ges (from cffi>=1.12->cryptography>=3.3->pyopenssl) (2.21)
WARNING: pip is configured with locations that require TLS/SSL, however the ss
module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirmi
 the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retr
s exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS
L because the SSL module is not available.")) - skipping

(base) C:\Users\kadambi>

感谢所有回复。

Python 3.7 anaconda 环境 - 导入 _ssl DLL 加载失败错误

这篇文章回答了这个问题。 看anaconda的白痴在C:\anacnoda3\dlls中寻找SSL和其他dll。 他们不使用 windows 路径分辨率。 我猜他们不相信 Windows 会做正确的事。

将 ssl 和加密 dll 复制到 Anaconda3\Dlls 位置解决了该问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM