cannot pip install qdldl on mac m1 (python 3.8)

Viewed 42

Here is the error I am getting and it says this is not an issue with pip. What else I can do to help with this? I am using python 3.8 and a M1 chip macbook. I think that is a problem related to the computer because it was running smoothly on another computer and it still does.

 pip3 install qdldl

Collecting qdldl
  Using cached qdldl-0.1.5.post2.tar.gz (69 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.7 in /Users/mypc/miniforge3/envs/ninen/lib/python3.8/site-packages (from qdldl) (1.23.3)
Requirement already satisfied: scipy>=0.13.2 in /Users/mypc/miniforge3/envs/ninen/lib/python3.8/site-packages (from qdldl) (1.9.1)
Building wheels for collected packages: qdldl
  Building wheel for qdldl (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [42 lines of output]
      running bdist_wheel
      running build
      running build_ext
      -- The C compiler identification is unknown
      -- The CXX compiler identification is unknown
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - failed
      -- Check for working C compiler: /usr/bin/cc
      -- Check for working C compiler: /usr/bin/cc - broken
      CMake Error at /Users/mypc/miniforge3/envs/ninen/lib/python3.8/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.24/Modules/CMakeTestCCompiler.cmake:69 (message):
        The C compiler
      
          "/usr/bin/cc"
      
        is not able to compile a simple test program.
      
        It fails with the following output:
      
          Change Dir: /private/var/folders/3f/r0wbc5md3fd4qrrzdynqrtzm0000gn/T/pip-install-1g0vmzqb/qdldl_bd95841167a74a9093b795d96d4bf01c/c/build/CMakeFiles/CMakeTmp
      
          Run Build Command(s):/usr/bin/make -f Makefile cmTC_22c2f/fast && xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
      
      
      
      
      
        CMake will not be able to correctly generate this project.
      Call Stack (most recent call first):
        CMakeLists.txt:4 (project)
      
      
      -- Configuring incomplete, errors occurred!
      See also "/private/var/folders/3f/r0wbc5md3fd4qrrzdynqrtzm0000gn/T/pip-install-1g0vmzqb/qdldl_bd95841167a74a9093b795d96d4bf01c/c/build/CMakeFiles/CMakeOutput.log".
      See also "/private/var/folders/3f/r0wbc5md3fd4qrrzdynqrtzm0000gn/T/pip-install-1g0vmzqb/qdldl_bd95841167a74a9093b795d96d4bf01c/c/build/CMakeFiles/CMakeError.log".
      xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
      building 'qdldl' extension
      creating build
      creating build/temp.macosx-11.1-arm64-cpython-38
      creating build/temp.macosx-11.1-arm64-cpython-38/cpp   
   gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mypc/miniforge3/envs/ninen/include -arch arm64 -I/Users/mypc/miniforge3/envs/ninen/include -arch arm64 -Ic -Ic/qdldl/include -I/Users/mypc/miniforge3/envs/ninen/lib/python3.8/site-packages/pybind11/include -I/Users/mypc/miniforge3/envs/ninen/lib/python3.8/site-packages/pybind11/include -I/Users/mypc/miniforge3/envs/ninen/include/python3.8 -c cpp/qdldl.cpp -o build/temp.macosx-11.1-arm64-cpython-38/cpp/qdldl.o -O3 -std=c++11
      xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for qdldl
  Running setup.py clean for qdldl
Failed to build qdldl
Installing collected packages: qdldl
  Running setup.py install for qdldl ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for qdldl did not run successfully.
  │ exit code: 1
  ╰─> [44 lines of output]
      running install
      /Users/mypc/miniforge3/envs/ninen/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_ext
      -- The C compiler identification is unknown
      -- The CXX compiler identification is unknown
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - failed
      -- Check for working C compiler: /usr/bin/cc
      -- Check for working C compiler: /usr/bin/cc - broken
      CMake Error at /Users/mypc/miniforge3/envs/ninen/lib/python3.8/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.24/Modules/CMakeTestCCompiler.cmake:69 (message):  
   CMake Error at /Users/mypc/miniforge3/envs/ninen/lib/python3.8/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.24/Modules/CMakeTestCCompiler.cmake:69 (message):
        The C compiler
      
          "/usr/bin/cc"
      
        is not able to compile a simple test program.
      
        It fails with the following output:
      
          Change Dir: /private/var/folders/3f/r0wbc5md3fd4qrrzdynqrtzm0000gn/T/pip-install-1g0vmzqb/qdldl_bd95841167a74a9093b795d96d4bf01c/c/build/CMakeFiles/CMakeTmp
      
          Run Build Command(s):/usr/bin/make -f Makefile cmTC_68488/fast && xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
      
      
      
      
      
        CMake will not be able to correctly generate this project.
      Call Stack (most recent call first):
        CMakeLists.txt:4 (project)
      
      
      -- Configuring incomplete, errors occurred!
      See also "/private/var/folders/3f/r0wbc5md3fd4qrrzdynqrtzm0000gn/T/pip-install-1g0vmzqb/qdldl_bd95841167a74a9093b795d96d4bf01c/c/build/CMakeFiles/CMakeOutput.log".
      See also "/private/var/folders/3f/r0wbc5md3fd4qrrzdynqrtzm0000gn/T/pip-install-1g0vmzqb/qdldl_bd95841167a74a9093b795d96d4bf01c/c/build/CMakeFiles/CMakeError.log".
      xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
      building 'qdldl' extension
      creating build
      creating build/temp.macosx-11.1-arm64-cpython-38
      creating build/temp.macosx-11.1-arm64-cpython-38/cpp
      gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mypc/miniforge3/envs/ninen/include -arch arm64 -I/Users/mypc/miniforge3/envs/ninen/include -arch arm64 -Ic -Ic/qdldl/include -I/Users/mypc/miniforge3/envs/ninen/lib/python3.8/site-packages/pybind11/include -I/Users/mypc/miniforge3/envs/ninen/lib/python3.8/site-packages/pybind11/include -I/Users/mypc/miniforge3/envs/ninen/include/python3.8 -c cpp/qdldl.cpp -o build/temp.macosx-11.1-arm64-cpython-38/cpp/qdldl.o -O3 -std=c++11
      xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
      error: command '/usr/bin/gcc' failed with exit code 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.
╰─> qdldl

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
0 Answers
Related