Open luigilcsilva opened 5 months ago
I made a few attempts here and ultimately the issue was fixed.
source /home/luigi/.conda/envs/cosmology/bin/activate
conda activate cosmology
pip install numpy pip install cmake
echo 'find_package(PythonInterp REQUIRED) execute_process( COMMAND ${PYTHON_EXECUTABLE} -c "import numpy; print(numpy.path[0])" OUTPUT_VARIABLE NumPy_PATH OUTPUT_STRIP_TRAILING_WHITESPACE )
set(NumPy_INCLUDE_DIR "${NumPy_PATH}/core/include") set(NumPy_FOUND TRUE)' > ~/cosmology/CCL/cmake/Modules/FindNumPy.cmake
sudo chmod -R 777 ~/cosmology/CCL/build
echo 'cmake_minimum_required(VERSION 3.5) cmake_policy(SET CMP0078 OLD) cmake_policy(SET CMP0086 OLD) cmake_policy(SET CMP0148 OLD)' | cat - ~/cosmology/CCL/CMakeLists.txt > temp && mv temp ~/cosmology/CCL/CMakeLists.txt
rm -rf ~/cosmology/CCL/build/*
python -c "import numpy; print(numpy.get_include())"
include_directories(/home/luigi/.conda/envs/cosmology/lib/python3.12/site-packages/numpy/core/include)
cd ~/cosmology/CCL/build rm -rf * cmake -DPYTHON_EXECUTABLE=/home/luigi/.conda/envs/cosmology/bin/python .. cd ~/cosmology/CCL python setup.py build
The above steps were actually performed for a sequence of problems that appeared. You may not need all of them to solve your problem.
Hi, everyone!
I recently updated CCL (I am using the developer instalation), but now I am getting an error when I try to import the library. I'll leave the print below. If anyone can help me, I would be very grateful!