Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake Could NOT find Python when doing cmake -S . -B build -D CMAKE_BUILD_TYPE=Release -D PYTHON_VERSIONS=3.9 -D LUISA_COMPUTE_DOWNLOAD_NVCOMP=ON #580

Open
sickopickle opened this issue Jan 15, 2025 · 0 comments

Comments

@sickopickle
Copy link

sickopickle commented Jan 15, 2025

I'm on Ubuntu 22.04.

I've tried completely uninstalling CMake and and reinstalling via sudo snap install cmake --classic as well as deleting my Genesis folder and cloning again. Running which cmake returns /snap/bin/cmake. Running which python returns /usr/bin/python. I've also tried installing Python 3.9, but to no avail. After following the instructions I keep getting the following error.

CMake Error at /snap/cmake/1437/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find Python (missing: Python_EXECUTABLE Python_INCLUDE_DIRS
  Python_LIBRARIES Interpreter Development Development.Module
  Development.Embed) (Required is exact version "3.9")

      Reason given by package: 
          Interpreter: Wrong version for the interpreter "/bin/python"

Call Stack (most recent call first):
  /snap/cmake/1437/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
  /snap/cmake/1437/share/cmake-3.31/Modules/FindPython/Support.cmake:4002 (find_package_handle_standard_args)
  /snap/cmake/1437/share/cmake-3.31/Modules/FindPython.cmake:631 (include)
  src/apps/CMakeLists.txt:17 (find_package)

I tried using the provided build https://drive.google.com/drive/folders/1Ah580EIylJJ0v2vGOeSBU_b8zPDWESxS, but it didn't work either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant