[英]Python3: error while installing google colab
我正在尝试使用pip3
安装google.colab
,但出现错误,如下所示:
pip3 install google.colab
我收到很多错误。 这是最后一个
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I./pandas/_libs -Ipandas/_libs/src/klib -Ipandas/_libs/src -I/usr/local/lib/python3.9/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c pandas/_libs/algos.c -o build/temp.macosx-10.11-x86_64-3.9/pandas/_libs/algos.o -Wno-unused-function
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 code 1
----------------------------------------
Rolling back uninstall of pandas
Moving to /usr/local/lib/python3.9/site-packages/pandas-1.2.0.dist-info/
from /usr/local/lib/python3.9/site-packages/~andas-1.2.0.dist-info
Moving to /usr/local/lib/python3.9/site-packages/pandas/
from /usr/local/lib/python3.9/site-packages/~andas
ERROR: Command errored out with exit status 1: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/n2/_qs_f40s0zdgw6wn2jj0k9zw0000gn/T/pip-install-kr44vor6/pandas/setup.py'"'"'; __file__='"'"'/private/var/folders/n2/_qs_f40s0zdgw6wn2jj0k9zw0000gn/T/pip-install-kr44vor6/pandas/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/n2/_qs_f40s0zdgw6wn2jj0k9zw0000gn/T/pip-record-hp7azct5/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/pandas Check the logs for full command output.
这不是 python 相关问题。 您需要安装 xcode
xcode-select --install
祝你好运
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.