python - 无法在 Linux Manjaro 上运行 Spyder

标签 python linux anaconda spyder manjaro

我最近从他们的官方网站安装了 Anaconda。我的操作系统是 Linux Manjaro,完全更新。在终端中尝试加载 spyder 编写 spyder 时,我得到了这个,作为输出:

Traceback (most recent call last):
  File "/home/jakub/anaconda3/lib/python3.5/site-packages/qtpy/QtWebEngineWidgets.py", line 22, in <module>
    from PyQt5.QtWebEngineWidgets import QWebEnginePage
ImportError: No module named 'PyQt5.QtWebEngineWidgets'

在处理上述异常的过程中,又发生了一个异常:

Traceback (most recent call last):
  File "/home/jakub/anaconda3/bin/spyder", line 6, in <module>
    sys.exit(spyder.app.start.main())
  File "/home/jakub/anaconda3/lib/python3.5/site-packages/spyder/app/start.py", line 103, in main
    from spyder.app import mainwindow
  File "/home/jakub/anaconda3/lib/python3.5/site-packages/spyder/app/mainwindow.py", line 92, in <module>
    from qtpy import QtWebEngineWidgets  # analysis:ignore
  File "/home/jakub/anaconda3/lib/python3.5/site-packages/qtpy/QtWebEngineWidgets.py", line 26, in <module>
    from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ImportError: libselinux.so.1: cannot open shared object file: No such file or directory

我完全更新了 anaconda 和 anaconda 元数据。 我(故意)安装的 python 版本是 3.5。 无法在网络上找到答案。

最佳答案

它们是 Spyder github 中的未解决问题:https://github.com/spyder-ide/spyder/issues/3383 .它看起来与您的问题相似。

您仍然可以使用 pip 而不是 Anaconda/Miniconda 安装 Spyder 和 PyQt5。然而,这也有它的问题,比如 https://github.com/spyder-ide/spyder/issues/3520 .

或者尝试在你的项目 virtualenv 中安装所有东西...我不知道它是否会更好但也许吧。

关于python - 无法在 Linux Manjaro 上运行 Spyder,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41593346/

相关文章:

linux - 链接共享库,调用没有自定义 LD_LIBRARY_PATH 的程序

python - Jupyter Notebook 无法识别 "import torch"

python - 在 conda 中, "base"环境和根本没有环境有什么区别?

python - 使用 SciPy 数值求解 ODE

python - 使用 etree 在 xml 中查找节点值

python - 通过降低 worker 中的内存使用量使用 Pool 进行多处理

python - 使用带有 Scrapy 的 css 选择器获取 href

linux - 在脚本中关闭 echo

android - linux下为android搭建openh264

python - 在 anaconda 3 上安装 hazm