Anaconda导航器无法启动Windows 10(以及Spyder)

时间:2019-02-26 03:41:47

标签: python anaconda spyder

我在Windows 10上安装了anaconda 64位。我可以启动提示,但是当我尝试通过图标或提示打开导航器时,出现以下错误。有人可以帮我吗?

Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\Scripts\anaconda-navigator-script.py", line 10, in <module>
    sys.exit(main())
  File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\app\main.py", line 103, in main
    from anaconda_navigator.app.start import start_app
  File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 34, in <module>
    from anaconda_navigator.widgets.main_window import MainWindow
  File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\widgets\main_window.py", line 37, in <module>
    from anaconda_navigator.utils.analytics import GATracker
  File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\utils\analytics.py", line 44, in <module>
    from anaconda_navigator.external.UniversalAnalytics import Tracker
  File "C:\ProgramData\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)

此外,Spyder也没有启动。我可以启动Jupyter并提示。

3 个答案:

答案 0 :(得分:1)

我尝试在Windows 10上安装Anaconda(Python 3.7版本),但遇到以下错误:

(base) C:\Users\***>anaconda-navigator Traceback (most recent call last):   File "C:\Users\***\anaconda3\Scripts\anaconda-navigator-script.py", line 10, in <module>
    sys.exit(main())   File "C:\Users\***\anaconda3\lib\site-packages\anaconda_navigator\app\main.py", line 103, in main
    from anaconda_navigator.app.start import start_app   File "C:\Users\***\anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 34, in <module>
    from anaconda_navigator.widgets.main_window import MainWindow   File "C:\Users\***\anaconda3\lib\site-packages\anaconda_navigator\widgets\main_window.py", line 39, in <module>
    from anaconda_navigator.utils.analytics import GATracker   File "C:\Users\***\anaconda3\lib\site-packages\anaconda_navigator\utils\analytics.py", line 44, in <module>
    from anaconda_navigator.external.UniversalAnalytics import Tracker   File "C:\Users\***\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)

我按照解决方案解释了here,并且有效。

答案 1 :(得分:0)

对我来说,它在安装“ Win64 OpenSSL v1.1.1d Light”后可以正常工作

答案 2 :(得分:0)

打印的错误与 ssl 库有关,人们自然会去尝试重新安装 openssl 库。但是要解决此问题,必须遵循以下步骤。刚刚尝试并确认这是有效的。

复制以下文件:

libcrypto-1_1-x64.*(.dll 和 .pdb 文件) libssl-1_1-x64.*(.dll 和 .pdb 文件)

从 D:\Anaconda3\Library\bin 到 D:\Anaconda3\DLLs。

anacondas github page 中描述了相同的问题。