【发布时间】:2011-11-09 16:18:22
【问题描述】:
我正在尝试在带有 Lion 的 Mac 上安装 python IDE eric4。我已经安装了 PyQt-mac-gpl-4.8.6、QT-1.1.4 和 SIP-4.13。当我导航到下载eric4 的文件夹并运行命令sudo python install.py 时,我收到以下消息:
Checking dependencies
Python Version: 2.7.1
Found PyQt4
Sorry, please install QtHelp.
Error: No module named QtHelp
如何安装 QtHelp 模块?我使用带有默认选项的 QT 安装程序。当我使用自定义选项重新安装它时,我无法在任何地方看到列出的帮助文件。
编辑:
回想起来,我意识到这与 Eric 无关,而是我无法安装 PyQT4。 当我运行这条线时:
python2.7 configure.py -w -g -q /Users/cel/QtSDK/Desktop/Qt/474/gcc/bin/qmake
我得到以下输出:
Checking to see if the QtHelp module should be built...
g++ -DQT_NO_DEBUG -I. -I/Users/cel/QtSDK/Desktop/Qt/474/gcc/mkspecs/default -I/Users/cel/QtSDK/Desktop/Qt/474/gcc/lib/QtHelp.framework/Headers -I/Users/cel/QtSDK/Desktop/Qt/474/gcc/include -pipe -O2 -w cfgtest_QtHelp.cpp -o cfgtest_QtHelp -F/Users/cel/QtSDK/Desktop/Qt/474/gcc/lib -L/Users/cel/QtSDK/Desktop/Qt/474/gcc/lib -headerpad_max_install_names -framework QtHelp
Undefined symbols for architecture x86_64:
"QString::fromAscii_helper(char const*, int)", referenced from:
_main in ccPUS9BG.o
"QString::free(QString::Data*)", referenced from:
_main in ccPUS9BG.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
也许这是由于在Lion 上编译此版本的 PyQT4 时出现问题?
【问题讨论】:
-
你用的是什么版本的pyqt、sip和eric?
-
@ekhumoro 我刚刚更新了我的问题。
-
PyQt4 的精确版本是多少?您是否自己编译了所有内容(Qt 除外)?
-
@ekhumoro 我正在使用 PyQt-mac-gpl-4.8.6。是的,我自己编译了除 Qt 之外的所有内容。
-
它看起来像Qt does not officially support Lion,但这并不一定意味着它不能完成。这可能没有什么区别,但请尝试将
--use-arch x86_64添加到您的configure命令中。如果这没有任何改变,我建议您尝试在PyQt mailing list 上提问(并确保在您的帖子中包含配置脚本的完整、详细的输出)。
标签: python macos installation osx-lion pyqt4