-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected
Description
- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption).
- OS version and name: macOS Big Sur 11.1
- Poetry version: 1.1.4
Issue
poetry add tensorflow fails in a fresh Python 3.8.7 .venv with the final exception distutils.errors.CompileError: command 'clang' failed with exit status 1.
pip install tensorflow fails with the error Could not find a version that satisfies the requirement tensorflow (from versions: none).
I upgraded pip and setuptools to the latest releases pip install -U pip setuptools and rerun poetry add; It failed with the same exception, and the following error:
ERROR: Command errored out with exit status 1: /private/tmp/test_poetry/.venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/22/yt1nh2rd27x1pjfv0zvq0c9w0000gn/T/pip-req-build-mqwpjztf/setup.py'"'"'; __file__='"'"'/private/var/folders/22/yt1nh2rd27x1pjfv0zvq0c9w0000gn/T/pip-req-build-mqwpjztf/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/22/yt1nh2rd27x1pjfv0zvq0c9w0000gn/T/pip-record-be6ffsck/install-record.txt --single-version-externally-managed --compile --install-headers /private/tmp/test_poetry/.venv/include/site/python3.8/grpcio Check the logs for full command output.
However, pip install tensorflow now works:
python -c "import tensorflow;print(tensorflow.__version__)"
2.4.0Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected