I am trying to run the following command
sudo pip install cryptography
But am getting the following error:
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.
I have tried updating everything including Python to Python 3.8, and pip
to pip3
. Nothing seems to be working and I am not sure why this vague error occurs. Has anyone come across this issue before?
Mac Version 11.1 Beta (20C5048k)
.
Xcode Version 12.2 (12B45b)
.