problems installing MASS
rosella1234 opened this issue · 1 comments
rosella1234 commented
when trying to compile MASS (ccmake MASS_1.1.0) the following error occurs :
CMake Error at /opt/basis/share/find-modules/FindPythonModules.cmake:345 (message):
Could NOT find the following Python modules:
nibabel;numpy;sklearn;sklearn.cluster
Check if executing /home/biolab/anaconda3/bin/python -c "import <module>"
works or set the PythonModules_DIR variable. Alternatively, set the
PythonModules_<module>_PATH variable(s) instead or the PYTHONPATH
environment variable. Unset PythonModules_DIR if you chose an alternative
option and before rerunning CMake again.
Call Stack (most recent call first):
/opt/basis/share/modules/CommonTools.cmake:56 (_find_package)
/opt/basis/share/modules/CommonTools.cmake:691 (find_package)
/opt/basis/share/modules/ProjectTools.cmake:2181 (basis_find_package)
/opt/basis/share/modules/ProjectTools.cmake:2475 (basis_find_packages)
/opt/basis/share/modules/ProjectTools.cmake:2751 (basis_project_begin)
CMakeLists.txt:48 (basis_project_impl)
Is this related on an incorrect installation of basis?
I have python istalled on my machine and all the modules that cmake can't find during compilation actually exist
thanks
schuhschuh commented
Sorry for the late reply. Were those Python packages installed under the base Anaconda environment (/home/biolab/anaconda3/bin/python
)? Otherwise, you may have to check the PYTHON_EXECUTABLE
CMake variable and point it to the respective conda environment (e.g., /home/biolab/anaconda3/envs/mass/bin/python
). Presumably you could activate the appropriate environment before running cmake
/ ccmake
as long as you are not using the CMake GUI.