Pyqtgraph与MAC上的Anaconda python产生笔尖错误 [英] Pyqtgraph with anaconda python on MAC gives nib error
问题描述
我正在尝试在Mac OS上将 pyqtgraph 与anaconda python一起使用
I'm trying to use the pyqtgraph with anaconda python on Mac os
Python 2.7.5 |Anaconda 1.6.1 (x86_64)| (default, Jun 28 2013, 22:20:13)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
我在pip install pyqtgraph
上安装了pyqtgraph,看起来工作正常.但是,如果我从库中运行任何命令,则会出现此错误:
I installed pyqtgraph with pip install pyqtgraph
, which seemed to work fine. However, if I run any command from the library I get this error:
Qt internal error: qt_menu.nib could not be loaded. The .nib file should be
placed in QtGui.framework/Versions/Current/Resources/ or in the resources
directory of your application bundle.
我发现了这个 SO线程,它似乎与C ++应用有关.就我而言,我没有application.app文件夹,所以我有点迷路.
I found this SO thread, which seems to be related to C++ app. In my case I have no application.app folder so I'm a bit lost.
推荐答案
解决方案是使用python.app
(或等效的pythonw
)运行程序,而不仅仅是python
.如果pyqtgraph
安装了任何命令,则需要对其进行编辑,以便它们的shebang行调用#!/path/to/anaconda/bin/python.app/Contents/MacOS/python
.
The solution is to use python.app
(or the equivalent pythonw
) to run the program, instead of just python
. If pyqtgraph
installed any commands, you'll need to edit them so that their shebang line calls #!/path/to/anaconda/bin/python.app/Contents/MacOS/python
.
这篇关于Pyqtgraph与MAC上的Anaconda python产生笔尖错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!