pip install channels error in
2019-12-31 本文已影响0人
Jayce_xi
1.问题描述
在mac上安装channels包报以下错误
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: 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
ERROR: Command errored out with exit status 1:
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/pm/t_gvmn156qn6yf7vmsvl6r1c0000gn/T/pip-install-cp5zeh_9/twisted/setup.py'"'"'; __file__='"'"'/private/var/folders/pm/t_gvmn156qn6yf7vmsvl6r1c0000gn/T/pip-install-cp5zeh_9/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 /private/var/folders/pm/t_gvmn156qn6yf7vmsvl6r1c0000gn/T/pip-record-ekw0uj6s/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
报错特别长
2. 解决
xcode-select --install