-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
I did not encounter this issue when using the original administrator account on the Linux virtual machine. However, when I switched to a newly created account and tried to build the environment using Miniconda, I encountered an error while using "python setup.py install": "Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)."
To resolve this issue, I modified line 41 in setup.py from:
cmake_args = ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir, '-DPYTHON_INCLUDE_PATH=' + include_path]
to:
cmake_args = ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir, '-DPYTHON_INCLUDE_DIR=' + get_python_inc(), '-DPYTHON_LIBRARY=' + sysconfig.get_config_var('LIBDIR')].
Metadata
Metadata
Assignees
Labels
No labels