我正在尝试运行以下命令
sudo pip install cryptography
但是我得到了以下错误:
2 errors generated.
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-qzwkn9nh/cffi/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-qzwkn9nh/cffi/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/tmp/pip-record-qqv4yi4n/install-record.txt --single-version-externally-managed --prefix /private/tmp/pip-build-env-vxrnkhjr/overlay --compile --install-headers /private/tmp/pip-build-env-vxrnkhjr/overlay/include/python3.8/cffi Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Library/Python/3.8/site-packages/pip install --ignore-installed --no-user --prefix /private/tmp/pip-build-env-vxrnkhjr/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; platform_python_implementation != '"'"'PyPy'"'"'' Check the logs for full command output.
我尝试过将所有内容更新,包括Python更新为Python 3.8,以及pip
更新为pip3
。似乎什么都不起作用,我也不知道为什么会出现这种模糊的错误。以前有人遇到过这个问题吗
MacVersion 11.1 Beta (20C5048k)
XcodeVersion 12.2 (12B45b)
目前没有回答
相关问题 更多 >
编程相关推荐