1
我試圖安裝一個PyQt作爲依賴項的python2.7程序。我的Mac有3.5.2的默認值,所以我用python 2.7製作了一個虛擬環境,使用virtualenv。無法在Mac OSX上安裝pyqt4 10.11.6
還有一堆其他依賴項,但它們都在工作,除了PyQt。之前你說「沖泡的PyQt」我聽說自制不virtualenv中很好地工作我有下載並解壓縮源代碼,但打字
(venv)$ python configure-ng.py --qmake ~/anaconda/bin/qmake-qt4 --verbose
回報
Querying qmake about your Qt installation...
Determining the details of your Qt installation...
/Users/evansmith/anaconda/bin/qmake-qt4 -spec macx-g++ -o qtdetail.mk qtdetail.pro
make -f qtdetail.mk
g++ -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I../../../anaconda/lib/qt4/mkspecs/macx-g++ -I. -I../../../anaconda/include/qt4/QtCore -I../../../anaconda/include/qt4 -I. -o qtdetail.o qtdetail.cpp
g++ -headerpad_max_install_names -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -o qtdetail.app/Contents/MacOS/qtdetail qtdetail.o -L/Users/evansmith/anaconda/lib -lQtCore -L/Users/evansmith/anaconda/lib
Undefined symbols for architecture x86_64:
"__Unwind_Resume", referenced from:
_main in qtdetail.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [qtdetail.app/Contents/MacOS/qtdetail] Error 1
Error: Failed to determine the detail of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.
。我應該使用它嗎?
我唯一能想到的其他事情是virtualenv python無法訪問/ anaconda/bin /中的qmake文件。有沒有辦法解決這個問題?
這是否對你的工作? –
是的,對不起,我專注於假期。 – socxc9
我能夠安裝,但該程序仍然無法正常工作。我認爲這是他們的錯。 – socxc9