简体   繁体   中英

Can't launch Spyder (Anaconda)

I'm having the next issue when I try to launch Spyder:

$spyder
Traceback (most recent call last):
  File "/home/luisquii/anaconda3/lib/python3.7/site-packages/qtpy/QtWebEngineWidgets.py", line 22, in <module>
from PyQt5.QtWebEngineWidgets import QWebEnginePage
ImportError: libXss.so.1: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/luisquii/anaconda3/bin/spyder", line 11, in <module>
sys.exit(main())
  File "/home/luisquii/anaconda3/lib/python3.7/site-packages/spyder/app/start.py", line 186, in main
from spyder.app import mainwindow
  File "/home/luisquii/anaconda3/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 90, in <module>
from qtpy import QtWebEngineWidgets  # analysis:ignore
  File "/home/luisquii/anaconda3/lib/python3.7/site-packages/qtpy/QtWebEngineWidgets.py", line 26, in <module>
from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'

I'm running it on Windows Subsystem For Linux terminal.

Even if I run it like:

$ anaconda-navigator

and then click "Launch" in the Anaconda interface I got the same error message in a textbox.

Do you know how to fix this issue?

If you need any extra information I can provide it.

解决者:

sudo apt-get install libxss1

I was getting the same error.

I got Spyder to work on Windows Subsystem for Linux through a clean reinstall of Anaconda3 followed by:

sudo apt-get install libxtst6
sudo updatedb
sudo apt-get install libasound2-plugins

make sure you have xming installed

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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