Anaconda Spyder Qt库启动时出错 [英] Anaconda Spyder Qt library error on launch
问题描述
在Linux Mint 13上从Anaconda python安装启动Spyder时,出现以下错误:
When launching Spyder from the Anaconda python installation on Linux Mint 13 I get the following error:
Cannot mix incompatible Qt library (version 0x40801) with this library (version 0x40805)
Aborted
$ PATH是
/home/ron/anaconda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
有人找到工作了吗?
Anaconda网站指示Spyder可能无法在Linux计算机上正确启动.
Anaconda web-site indicates that Spyder may not launch correctly on Linux machines.
http://docs.continuum.io/anaconda/
*** 已解决 我有点sheep.发现我将Anaconda安装为sudo.按照文档中的指示重新安装,一切正常.谢谢大家的帮助.
*** Resolved I am a little sheepish. Discovered that I installed Anaconda as sudo. Reinstalled as indicated in documentation and everything works fine. Thanks everyone for the help.
推荐答案
我在kubuntu alpha上使用anaconda 1.8.它使用qt 4.8.5.我可以看到它
I use anaconda 1.8 on kubuntu alpha. It uses qt 4.8.5. I can see it with
find $ANACONDA/lib -name '*.4.8.5'
我的系统qt libs是4.8.6.我可以看到它
My system qt libs is 4.8.6. I can see it with
find /usr/lib -name "*so.4.8.6"
如果您的系统qt版本是4.8.5,而anaconda是4.8.1,也许您可以只更新anaconda?尝试运行
If Your system qt version is 4.8.5, and anaconda is 4.8.1 -- maybe You can just update anaconda? Try to run
conda update conda
conda update anaconda
修改
问题似乎出在spyder提取您的系统库上.我试图使用环境变量LD_LIBRARY_PATH
和与qt相关的各种方法来隐藏库.但是什么都行不通.但是,简单地将系统库复制到$ANACONDA/lib
即可解决此问题.
It seems that the problem is spyder picking up Your system libraries. I tried to sheild the libs using evnironment variables LD_LIBRARY_PATH
and various qt-related. But nothing works. However simple copying system libs to $ANACONDA/lib
solves the problem.
转到$ANACONDA/lib
并将所有*.4.8*
文件移动到另一个目录.然后转到/usr/lib/x86_64-linux-gnu
(您使用的是64位吗?)并将所有*.4.8*
复制到$ANACONDA/lib
.就是这样:运行spyder
!
Go to $ANACONDA/lib
and move all *.4.8*
files to another dir. Then go to /usr/lib/x86_64-linux-gnu
(are You using 64 bit?) and copy all *.4.8*
to $ANACONDA/lib
. That's it: run spyder
!
qtlib通常存储为文件和链接:例如,如果有libQtGui.so.4.8.6
文件,则还有符号链接libQtGui.so.4.8
.您也必须复制/移动链接.
The qtlibs are usually stored as files and links: for example if there's a libQtGui.so.4.8.6
file then there's also a symbolic link libQtGui.so.4.8
. You have to copy/move links too.
编辑2 :
有一个建议
unset QT_PLUGIN_PATH
我尝试将其设置为export QT_PLUGIN_PATH=
,但没有尝试unset
.
I tried to set it to nothing export QT_PLUGIN_PATH=
, but didn't try to unset
it.
这篇关于Anaconda Spyder Qt库启动时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!