【问题标题】:Error when trying to Launch Spyder using Anaconda尝试使用 Anaconda 启动 Spyder 时出错
【发布时间】:2017-07-10 09:09:03
【问题描述】:

我在 DigitalOcean VM 上,我正在尝试在安装 Anaconda 后启动 spyder。我正在使用 Python 3.5.2 和 Anaconda 4.3.0(64 位)。该虚拟机具有 Ubuntu 16.04.1 x64。当我尝试启动 spyder 时,我收到以下错误:

此应用程序无法启动,因为它无法找到或加载 Qt 平台插件“xcb” 在“”中。

可用的平台插件有:minimal、offscreen、xcb。

觉得我越来越暖和了。根据以下内容,如何将符号链接添加到正确的库中?

myuser@ubuntu-003-2x:~/anaconda3/plugins/platforms$ !422
apt-file search libSM.so.6
libsm6: /usr/lib/x86_64-linux-gnu/libSM.so.6
libsm6: /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
myuser@ubuntu-003-2x:~/anaconda3/plugins/platforms$ !442
ldd libqxcb.so | grep not
libSM.so.6 => not found
libICE.so.6 => not found
libXrender.so.1 => not found
libSM.so.6 => not found
libICE.so.6 => not found
libXrender.so.1 => not found

重新安装应用程序可能会解决此问题。 中止(核心转储)

【问题讨论】:

  • 你的 VM 中安装了 Xorg 吗?

标签: python qt plugins anaconda spyder


【解决方案1】:

试试这个:

conda update conda
conda update anaconda 
unset QT_PLUGIN_PATH

Reference

【讨论】:

  • 感谢您的快速回复。我试过了,但是没有用。奇怪的是它如何在本地使用 Ubuntu 和 Anaconda,但在 VM 上却不行。
【解决方案2】:

(代表 OP 发布).

感谢您的回复。他们帮助解决了问题。 Spyder 即将推出!解决方法如下:

sudo apt-get install xcb

export DISPLAY=localhost:10.0

【讨论】:

    猜你喜欢
    • 2014-02-08
    • 1970-01-01
    • 1970-01-01
    • 2020-12-30
    • 2020-03-27
    • 2019-07-12
    • 1970-01-01
    • 1970-01-01
    • 2019-12-16
    相关资源
    最近更新 更多