Open shreyasc30 opened 4 months ago
@shreyasc30 I've been able to reproduce this, and the solution for me was:
a) Make sure cmake is able to find python. For this, try inserting the following before line 70 of cmake/Modules/FindNumPy.cmake
:
include(CMakePrintHelpers)
cmake_print_variables(PYTHON_EXECUTABLE)
and see what the output is. Check if the corresponding path to the python executable is actually correct.
b) Make sure numpy is installed.
I would suggest removing everything under build
and dist
before trying to reinstall.
I'm having the exact same problem with a pretty vanilla install of Fedora 40. For me, even the installation with pip doesn't work. I looked at cmake/Modules/FindNumPy.cmake
and modified it a bit to look at the different variables. PYTHON_EXECUTABLE
is set correctly. Additionally, I can execute the command that gets called in line 52 in my terminal and it responds with the numpy version and location, as expected. But in the script, _NUMPY_ERROR_VALUE
includes No module named 'numpy'
. So for some reason, the command "${PYTHON_EXECUTABLE}" "-c" "import numpy as n; print(n.__version__); print(n.get_include());"
finds numpy in my terminal but not in the cmake script. Any ideas what the reason could be?
Hello, I have verified that I have numpy and cmake installed and am able to get a working version with pip, but I'm getting the following error specifically when I try to install with Poetry, which I have to use, and I've tried multiple versions of CMake and Numpy to no avail:
Thanks in advance, any help is appreciated!