Closed potassium-chloride closed 9 months ago
The CMake Python finder understands Python_EXECUTABLE
but not PYTHON_EXECUTABLE
.
Thanks a lot! It helped. I confused because previous version understands PYTHON_EXECUTABLE
.
Thanks, @potassium-chloride . The documentation will be amended following your question, with pull request #471
Dear developers,
I have problems installing CRPropa on my system System Information: (Please fill out the following information)
Did you install CRPropa from git or download a release? I installed version 3.2.1-77-g3498d825 from git cloning.
Things that I tried before asking for help: I read and followed the installation instructions at https://crpropa.github.io/CRPropa3/ . Before writing this request I have installed previous version of CRPropa 3.2.1-no-git without problems. Today I receive the following output:
But I have Python+NumPy and successfully installed previous version. Previous version o CMakeLists.txt used lines:
New version uses line:
find_package(Python 3.0 REQUIRED COMPONENTS Interpreter Development NumPy)
I tried putting
-DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DPYTHON_EXECUTABLE=$(which python) -DCMAKE_PREFIX_PATH=$CONDA_PREFIX
after cmake command but there is no effect.Cmake found python at /usr/bin/python3.9, but I always use Anaconda. How to fix it?