对于使用otree(http://otree.readthedocs.io/)的项目,我在尝试安装Channels
时遇到了一些问题,以便利用实时功能。
由于产量很高,我试图弄清楚最重要的部分:
有关完整输出,请参阅:https://jsfiddle.net/L4ccmr2k/1/
红色标记输出&输出被认为与我相关:
1
Building wheels for collected packages: twisted
Running setup.py bdist_wheel for twisted ... error
2
creating build/temp.macosx-10.6-intel-3.6
creating build/temp.macosx-10.6-intel-3.6/src
creating build/temp.macosx-10.6-intel-3.6/src/twisted
creating build/temp.macosx-10.6-intel-3.6/src/twisted/test
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c src/twisted/test/raiser.c -o build/temp.macosx-10.6-intel-3.6/src/twisted/test/raiser.o
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command '/usr/bin/clang' failed with exit status 1
----------------------------------------
Failed building wheel for twisted
Running setup.py clean for twisted
Failed to build twisted
Installing collected packages: twisted, daphne, channels
Running setup.py install for twisted ... error
Complete output from command /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/6_/30pgp_bj17j3krgq_kt0py440000gn/T/pip-build-v4kcayoj/twisted/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/6_/30pgp_bj17j3krgq_kt0py440000gn/T/pip-vpnlc5lo-record/install-record.txt --single-version-externally-managed --compile:
3
creating build/temp.macosx-10.6-intel-3.6
creating build/temp.macosx-10.6-intel-3.6/src
creating build/temp.macosx-10.6-intel-3.6/src/twisted
creating build/temp.macosx-10.6-intel-3.6/src/twisted/test
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c src/twisted/test/raiser.c -o build/temp.macosx-10.6-intel-3.6/src/twisted/test/raiser.o
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command '/usr/bin/clang' failed with exit status 1
----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/6_/30pgp_bj17j3krgq_kt0py440000gn/T/pip-build-v4kcayoj/twisted/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/6_/30pgp_bj17j3krgq_kt0py440000gn/T/pip-vpnlc5lo-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/6_/30pgp_bj17j3krgq_kt0py440000gn/T/pip-build-v4kcayoj/twisted/
我正在使用:
答案 0 :(得分:1)
尝试运行这些命令
xcode-select --install
xcode-select --switch /Applications/Xcode.app
xcode-select --switch /Library/Developer/CommandLineTools
只是为了确保您的设置正确应用