简体   繁体   English

Anaconda 和 Windows 10 上的 jupyter 笔记本

[英]Anaconda and jupyter notebook on Windows 10

It just does not seem to work.它似乎不起作用。 I get several different errors.我得到几个不同的错误。

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

  1. For some reason ssl does not load.由于某种原因 ssl 无法加载。 I have tried all the solutions proposed online, such as adding Anaconda3, Anaconda3\bin, Anaconda3\Lib to the PATH variable.网上提出的所有解决方案我都试过了,比如在PATH变量中加入Anaconda3、Anaconda3\bin、Anaconda3\Lib。 Adding the Anaconda3\pkgs\openssl-1.1.1n-h2bbff1b_0\Library\bin to the PATH variable.将 Anaconda3\pkgs\openssl-1.1.1n-h2bbff1b_0\Library\bin 添加到 PATH 变量中。

  2. I do have the libssl-1_1-x64.dll.我确实有 libssl-1_1-x64.dll。

The errors I get:我得到的错误:

  1. Neither Anaconda Navigator, nor the jupyter notebook starting scripts do anything. Anaconda Navigator 和 jupyter notebook 启动脚本都没有做任何事情。 They just fail without any errors.他们只是失败而没有任何错误。

  2. The only clue I have is when I start the python command prompt and try to "import ssl".我唯一的线索是当我启动 python 命令提示符并尝试“导入 ssl”时。 I get the following error.我收到以下错误。

    'MySQL' is not recognized as an internal or external command, operable program or batch file. 'MySQL' 不是内部或外部命令、可运行程序或批处理文件。 'MySQL' is not recognized as an internal or external command, operable program or batch file. 'MySQL' 不是内部或外部命令、可运行程序或批处理文件。

    (base) C:\Users\kadambi>python Python 3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)]:: Anaco nda, Inc. on win32 Type "help", "copyright", "credits" or "license" for more information. (基础)C:\Users\kadambi>python Python 3.9.12(主要,2022 年 4 月 4 日,05:22:27)[MSC v.1916 64 位(Windco 上的 AMD64)2]:类型:帮助”、“版权”、“学分”或“许可”以获取更多信息。

    import ssl Traceback (most recent call last): File "", line 1, in File "C:\Software\Anaconda3\lib\ssl.py", line 98, in import _ssl # if we can't import it, let the error propagate ImportError: DLL load failed while importing _ssl: The specified procedure could not be found. 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: 找不到指定的过程。

When I try pip install pyopenssl, this is the error I get.当我尝试 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>

Thanks for all responses.感谢所有回复。

Python 3.7 anaconda environment - import _ssl DLL load fail error Python 3.7 anaconda 环境 - 导入 _ssl DLL 加载失败错误

This post answers the question.这篇文章回答了这个问题。 Looks the the idiots of anaconda look for SSL and other dlls in C:\anacnoda3\dlls.看anaconda的白痴在C:\anacnoda3\dlls中寻找SSL和其他dll。 They do not use the windows path resolution.他们不使用 windows 路径分辨率。 I guess they do not trust Windows to do the right thing.我猜他们不相信 Windows 会做正确的事。

Copying the ssl and crypto dlls to Anaconda3\Dlls location solved the problem.将 ssl 和加密 dll 复制到 Anaconda3\Dlls 位置解决了该问题。

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

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