问题描述
我已经在64位Windows 10上安装了Anaconda 3.安装成功完成.我可以启动idle.exe,它可以工作.我可以启动Anaconda Powershell和Anaconda Prompt,但无法启动Navigator,Spyer或Jupyter.从开始菜单启动它们将使Windows Shell窗口暂时显示一会儿,然后它们消失并且什么也没有发生.我尝试从Anaconda Prompt启动导航器,这就是错误消息的样子:
I have installed Anaconda 3 on Windows 10 64-bit. The installation completed successfully. I could start idle.exe and it works. I can start the Anaconda Powershell and Anaconda Prompt, but I cannot start the Navigator nor Spyer or Jupyter. Launching them from the start menu will bring up the Windows shell windows for a moment, before they disappear and nothing happens.I have tried starting the navigator from the Anaconda Prompt and this is what the error message looks like:
(base) PS C:\Users\Frank> anaconda-navigator.exe
Traceback (most recent call last):
File "C:\Users\Frank\Anaconda3\Scripts\anaconda-navigator-script.py", line 10, in <module>
sys.exit(main())
File "C:\Users\Frank\Anaconda3\lib\site-packages\anaconda_navigator\app\main.py", line 103, in main
from anaconda_navigator.app.start import start_app
File "C:\Users\Frank\Anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 34, in <module>
from anaconda_navigator.widgets.main_window import MainWindow
File "C:\Users\Frank\Anaconda3\lib\site-packages\anaconda_navigator\widgets\main_window.py", line 37, in <module>
from anaconda_navigator.utils.analytics import GATracker
File "C:\Users\Frank\Anaconda3\lib\site-packages\anaconda_navigator\utils\analytics.py", line 44, in <module>
from anaconda_navigator.external.UniversalAnalytics import Tracker
File "C:\Users\Frank\Anaconda3\lib\site-packages\anaconda_navigator\external\UniversalAnalytics\Tracker.py", line 28, in <module>
from six.moves.urllib.request import (HTTPSHandler, Request, build_opener,
ImportError: cannot import name 'HTTPSHandler' from 'six.moves.urllib.request' (unknown location)
我已经在互联网上搜索了错误消息中最后一行的根本原因,但均未成功.有一些技巧可以解决它,但是没有用.
I have searched the internet for root causes of the last line in the error message with no success. There are a few tips how to fix it, but nothing worked.
我安装的确切版本是Anaconda3-2019.10-Windows-x86_64.exe
.我曾尝试以所有不同的样式"卸载并重新安装Anaconda:
The exact version I have installed is Anaconda3-2019.10-Windows-x86_64.exe
.I have tried uninstalling and reinstalling Anaconda in all different "flavors":
- 针对所有用户,而无需将路径添加到环境变量中
- 针对所有用户,并向其添加环境变量的路径
- 当前用户,无需将路径添加到环境变量中
- 对于当前用户,将路径添加到环境变量中
Anaconda安装到目录中,名称中没有空格,并且没有花哨字符:c:\ users \ frank \ Anaconda3.
Anaconda is installed into a directory without spaces in its name and no fancy characters: c:\users\frank\Anaconda3.
我删除了.anaconda并尝试再次启动导航器,spyer和jupyter,但没有成功.
I have removed .anaconda and tried launching the navigator, spyer and jupyter again with no success.
Spyer收到一条消息,提示它在上一个会话期间崩溃了.我遵循了建议,并删除了.spyder-py3文件夹,但没有任何更改.
Spyer comes up with a message that it had crashed during the last session. I followed the advice and deleted the .spyder-py3 folder, but no change.
如何在系统上找到有关问题原因的更多信息?是否有包含更多信息的日志文件?我检查了HTTPSHandler是否在Anaconda的搜索位置进行了定义(假设在哪里寻找资源时,请考虑我在Anaconda方面的专业知识).
How can I find more information about the reason for the problem on my system? Are there any log files that contain more information? I checked if HTTPSHandler is defined where Anaconda would search for it (please consider my limited expertise in Anaconda, when assuming where to look for resources...).
我在另一台计算机上安装了相同的Anaconda3版本,并且从一开始就可以正常工作.
I installed the same Anaconda3 version on another computer and it works right from the start.
在阅读了有关使用conda update conda
更新conda的另一条建议并在Anaconda提示符下尝试后,我收到以下错误:
After reading another suggestion about updating conda using conda update conda
and trying it on the Anaconda prompt I received the following error:
(base) PS C:\Users\Frank> conda update conda
Collecting package metadata (current_repodata.json): failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json>
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/main/win-64/current_repodata.json (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))
我本来以为SSL可能是个问题,然后卸载了OpenSSL v1.1.0g(Win64),然后再次进行了检查.那无济于事.再次安装OpenSSL v1.1.0g(Win64)也没有什么不同.另一方面,我本来以为Anaconda会带来所需的所有组件和模块.
I had the idea that SSL could be a problem and uninstalled OpenSSL v1.1.0g (Win64), then checked again. That doesn't help. Installing OpenSSL v1.1.0g (Win64) again doesn't make a difference either. On the other hand I would have assumed that Anaconda brings all components and modules it needs.
有什么想法可以继续进行故障排除吗?
Any ideas how to continue troubleshooting?
推荐答案
我一直在寻找答案,并在GitHub上进行了讨论:
I kept digging for answers and came across a discussion at GitHub:
CondaHTTPError:由SSLError引起(无法连接到HTTPS URL(因为SSL模块不可用)
我遵循了建议,从页面 https://上卸载了我的OpenSSL版本并安装了最新版本. slproweb.com/products/Win32OpenSSL.html .现在是"Win64 OpenSSL v1.1.1d",安装后,Anaconda的所有问题都消失了.我可以使用conda进行更新,Anaconda Navigator出现,Jupyter Notebook工作.一切都很好.
I followed the advice, uninstalled my OpenSSL version and installed the latest one from the page https://slproweb.com/products/Win32OpenSSL.html. This is now "Win64 OpenSSL v1.1.1d" and right after the installation all the issues with Anaconda were gone. I can use conda to update, the Anaconda Navigator comes up, Jupyter Notebook works. All is fine.
这篇关于成功安装后,Anaconda Navigator Jupyter和Spyder无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!