-
Notifications
You must be signed in to change notification settings - Fork 16
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
How to tell CMake to use Anaconda environment? #126
Comments
Someone met the same problem before and it seems old CMake's |
That's interesting, I am using CMake 3.26.1, but it sounds like it could be a similar issue. I couldn't find any info about how to possibly intervene with FindPython that might help here though https://cmake.org/cmake/help/latest/module/FindPython3.html Maybe the 'someone' you mentioned might know? Or do you remember anything else about their issue/solution? |
Ok, changing this to 3.26 fixed it! Is that what you meant? taichi-aot-demo/CMakeLists.txt Line 1 in a6c35b6
|
Ok, so to run the CI script on macOS using conda and Vulkan only, I had to:
set(CMAKE_PREFIX_PATH "/Users/xxx/.miniconda3/envs/my-env/")
find_package (Python ${MY_PYTHON_VERSION} EXACT REQUIRED)
|
When I add this to the CMake file:
I get the correct Python path for my current conda environment.
But, I am getting
ModuleNotFoundError: No module named 'taichi'
errors when runningpython ./ci/run_tests.py -l $TAICHI_C_API_INSTALL_DIR
.The text was updated successfully, but these errors were encountered: