python 2.7和pyqt4的问题(运行flatCAM)

时间:2018-07-10 14:47:56

标签: python pyqt

我正在尝试在Mac OS X 10.13.5上运行flatCAM。我按照网站上的说明进行操作,并通过brew和pip安装了所有依赖项。他们似乎都安装良好。我通过git下载了程序本身。当我转到文件夹并从网站python FlatCAM.py运行建议的命令时,出现错误/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'FlatCAM.py': [Errno 2] No such file or directory 然后,我尝试执行命令python flatcam,因为它看起来像是可执行文件(文件夹中没有名为“ FlatCAM.py”的文件,并且出现了错误

Traceback (most recent call last):
  File "FlatCAM", line 11, in <module>
    from PyQt4 import QtGui
ImportError: No module named PyQt4
Dannys-iMac:flatcam danny$ python FlatCAM.py
/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'FlatCAM.py': [Errno 2] No such file or directory
Dannys-iMac:flatcam danny$ python FlatCAM
Traceback (most recent call last):
  File "FlatCAM", line 11, in <module>
    from PyQt4 import QtGui
ImportError: No module named PyQt4

我已经读到这与python和pyQt的版本不兼容有关。我相信我同时安装了2.7版和python 3版。这有点麻烦,因为我只是在尝试安装该软件,但如果可能的话,任何帮助将不胜感激。我也一直在搜索此主题已有一段时间,但我不知所措。谢谢。

0 个答案:

没有答案