[Bug] pip install crashes
Opened this issue · 1 comments
smedegaard commented
Describe the bug
pip install beep
crashes
To Reproduce
Steps to reproduce the behavior:
- Command used
pip install beep
- Error
237 warnings and 7 errors generated.
error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/usr/local/opt/zlib/include -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNO_ATLAS_INFO=3 -DHAVE_CBLAS -Ibuild/src.macosx-11-x86_64-3.1/numpy/core/src/umath -Ibuild/src.macosx-11-x86_64-3.1/numpy/core/src/npymath -Ibuild/src.macosx-11-x86_64-3.1/numpy/core/src/common -Inumpy/core/include -Ibuild/src.macosx-11-x86_64-3.1/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/anders/.asdf/installs/python/3.10.3/include/python3.10 -Ibuild/src.macosx-11-x86_64-3.1/numpy/core/src/common -Ibuild/src.macosx-11-x86_64-3.1/numpy/core/src/npymath -Ibuild/src.macosx-11-x86_64-3.1/numpy/core/src/common -Ibuild/src.macosx-11-x86_64-3.1/numpy/core/src/npymath -c build/src.macosx-11-x86_64-3.1/numpy/core/src/multiarray/scalartypes.c -o build/temp.macosx-11-x86_64-3.10/build/src.macosx-11-x86_64-3.1/numpy/core/src/multiarray/scalartypes.o -MMD -MF build/temp.macosx-11-x86_64-3.10/build/src.macosx-11-x86_64-3.1/numpy/core/src/multiarray/scalartypes.o.d -msse3 -I/System/Library/Frameworks/vecLib.framework/Headers" failed with exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> numpy
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Expected behavior
A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
- OS: OSX 13.0.1
- Python Version: Python 3.10.3
- Version:
2022.10.3.16
Additional context
tested with pip, Poetry and on Sagemaker Jupyter Notebook
lcontami commented
I got a similar problem during pip install with the following setup:
- Windows 11 Pro
- Python 3.11.4
The error message I get mentions
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
But Visual C++ 2015-2022 is installed.
[end of output]