melon_15 2017-05-03 15:44 采纳率: 75%
浏览 14732

ubuntu下Anaconda下好了但是无法启动Spyder

Anaconda加入了环境变量了,
我用conda list看了是存在一个spyder的。
vim修改好了程序也能运行

但是终端下试图运行spyder都报错,看信息是缺了东西?但是我下载Anaconda的时候都没有改动原来的设定。

Traceback (most recent call last):
File "/root/anaconda2/bin/spyder", line 6, in
sys.exit(spyder.app.start.main())
File "/root/anaconda2/lib/python2.7/site-packages/spyder/app/start.py", line 103, in main
from spyder.app import mainwindow
File "/root/anaconda2/lib/python2.7/site-packages/spyder/app/mainwindow.py", line 78, in
from qtpy.compat import from_qvariant
File "/root/anaconda2/lib/python2.7/site-packages/qtpy/compat.py", line 15, in
from .QtWidgets import QFileDialog
File "/root/anaconda2/lib/python2.7/site-packages/qtpy/QtWidgets.py", line 22, in
from PyQt5.QtWidgets import *
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

可转支付宝,谢谢!
更新:
=20170507=
Anaconda版本
谢谢大家看来我是缺了很多东西。
现在

  • pygt 更新 4.3.14-py27_0 --> 4.3.17-py27_0
  • libgl1-mesa-dev下载了最新版本12.0.6-0ubuntu0.16.04.1)
  • 再spyder也是报错信息变为

This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".
Available platform plugins are: minimal, offscreen, xcb.
Reinstalling the application may fix this problem.

此外
再度apt-get install libgl1-mesa-dev或者apt-get install "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev
除了说已经安装最新,它会提示我有2个没用的可以卸载

The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-image-4.4.0-31-generic
linux-image-extra-4.4.0-31-generic
Use 'apt autoremove' to remove them.

不过我没敢动。多余的应该不影响?

  • 写回答

5条回答 默认 最新

  • devmiao 2017-05-03 16:01
    关注
    评论

报告相同问题?

悬赏问题

  • ¥30 matlab解优化问题代码
  • ¥15 写论文,需要数据支撑
  • ¥15 identifier of an instance of 类 was altered from xx to xx错误
  • ¥100 反编译微信小游戏求指导
  • ¥15 docker模式webrtc-streamer 无法播放公网rtsp
  • ¥15 学不会递归,理解不了汉诺塔参数变化
  • ¥15 基于图神经网络的COVID-19药物筛选研究
  • ¥30 软件自定义无线电该怎样使用
  • ¥15 R语言mediation包做中介分析,直接效应和间接效应都很小,为什么?
  • ¥15 Jenkins+k8s部署slave节点offline