简体   繁体   English

无法启动 Spyder (Anaconda)

[英]Can't launch Spyder (Anaconda)

I'm having the next issue when I try to launch Spyder:当我尝试启动 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.我在 Windows Subsystem For Linux 终端上运行它。

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.然后在 Anaconda 界面中单击“启动”,我在文本框中收到了相同的错误消息。

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:我通过干净地重新安装 Anaconda3 使 Spyder 在适用于Linux 的 Windows 子系统上工作,然后是:

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

make sure you have xming installed确保你已经安装了 xming

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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