我試圖在Lion上安裝Python IDE eric4。我已經安裝了PyQt-mac-gpl-4.8.6,QT-1.1.4和SIP-4.13。當我瀏覽到我下載eric4
和運行命令sudo python install.py
我得到以下信息的文件夾:在Lion上安裝PyQt4的問題(OSX)
Checking dependencies
Python Version: 2.7.1
Found PyQt4
Sorry, please install QtHelp.
Error: No module named QtHelp
我如何安裝QtHelp模塊?我使用了默認選項的QT安裝程序。當我使用自定義選項重新安裝它時,我看不到任何地方列出的幫助文件。
編輯:
現在回想起來,我意識到這無關與埃裏克,而是我無法安裝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
也許這是由於編制這個版本PyQt4的對Lion
一個問題嗎?
你正在使用pyqt,sip和eric的哪些版本? – ekhumoro
@ekhumoro我剛剛更新了我的問題。 – djq
什麼是PyQt4的精確版本?你自己編譯了一切(除了Qt)嗎? – ekhumoro