全新的conda环境中Spyder启动错误

时间:2018-08-07 20:21:32

标签: anaconda spyder conda

我刚刚在conda中创建了一个全新的环境,并且spyder不会从终端或anaconda启动,并出现以下错误:

Traceback (most recent call last):
File "/Users/alexanderniewiarowski/anaconda3/envs/fenics2018/lib/python3.6/site-packages/qtpy/QtWebEngineWidgets.py", line 22, in 
from PyQt5.QtWebEngineWidgets import QWebEnginePage
ImportError: dlopen(/Users/alexanderniewiarowski/anaconda3/envs/fenics2018/lib/python3.6/site-packages/PyQt5/QtWebEngineWidgets.so, 2): Library not loaded: @rpath/libQt5WebEngineWidgets.5.dylib
Referenced from: /Users/alexanderniewiarowski/anaconda3/envs/fenics2018/lib/python3.6/site-packages/PyQt5/QtWebEngineWidgets.so
Reason: image not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/alexanderniewiarowski/anaconda3/envs/fenics2018/bin/spyder", line 11, in 
sys.exit(main())
File "/Users/alexanderniewiarowski/anaconda3/envs/fenics2018/lib/python3.6/site-packages/spyder/app/start.py", line 179, in main
from spyder.app import mainwindow
File "/Users/alexanderniewiarowski/anaconda3/envs/fenics2018/lib/python3.6/site-packages/spyder/app/mainwindow.py", line 92, in 
from qtpy import QtWebEngineWidgets # analysis:ignore
File "/Users/alexanderniewiarowski/anaconda3/envs/fenics2018/lib/python3.6/site-packages/qtpy/QtWebEngineWidgets.py", line 26, in 
from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'

在这里提出了类似的问题,但是错误有所不同。这是我的配置。我拥有最新版本的PyQt。

     active environment : fenics2018
    active env location : /Users/alexanderniewiarowski/anaconda3/envs/fenics2018
            shell level : 1
       user config file : /Users/alexanderniewiarowski/.condarc
 populated config files : /Users/alexanderniewiarowski/.condarc
          conda version : 4.5.9
    conda-build version : 3.4.1
         python version : 3.6.4.final.0
       base environment : /Users/alexanderniewiarowski/anaconda3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/osx-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/osx-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/osx-64
                          https://repo.anaconda.com/pkgs/pro/noarch
          package cache : /Users/alexanderniewiarowski/anaconda3/pkgs
                          /Users/alexanderniewiarowski/.conda/pkgs
       envs directories : /Users/alexanderniewiarowski/anaconda3/envs
                          /Users/alexanderniewiarowski/.conda/envs
               platform : osx-64
             user-agent : conda/4.5.9 requests/2.18.4 CPython/3.6.4 Darwin/17.7.0 OSX/10.13.6
                UID:GID : 501:20
             netrc file : None
           offline mode : False

1 个答案:

答案 0 :(得分:1)

不知道问题的根源是什么,但spyder --reset已解决。