Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] pip install crashes #739

Open
smedegaard opened this issue Jan 26, 2023 · 1 comment
Open

[Bug] pip install crashes #739

smedegaard opened this issue Jan 26, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@smedegaard
Copy link

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

@smedegaard smedegaard added the bug Something isn't working label Jan 26, 2023
@lcontami
Copy link

lcontami commented Oct 6, 2023

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants