PyQt가 종속성으로있는 python2.7 프로그램을 설치하려고합니다. 내 Mac에는 3.5.2 기본값이 있으므로 python 2.7과 함께 virtualenv를 사용하여 가상 환경을 만들었습니다.
다른 많은 종속성이 있지만 PyQt를 제외하고 모두 작동합니다. 소스 코드를 다운로드하고 압축을 풀었지만
(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.
"brew pyqt"를 말하기 전에 homebrew가 virtualenv에서 잘 작동하지 않는다고 들었습니다. 그래도 사용해야하나요?
내가 생각할 수있는 유일한 다른 것은 virtualenv 파이썬이 / anaconda / bin /의 qmake 파일에 도달 할 수 없다는 것입니다. 이 문제를 해결할 방법이 있습니까?
이미 Anaconda를 사용하고있는 것 같습니다.
다음으로 새로운 환경을 만드십시오. conda
conda create -n py27 python=2.7
활성화 :
source activate py27
PyQt 4를 설치합니다.
conda install pyqt
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다