簡體   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