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

conda environment not respected #143

Open
dellaert opened this issue Jan 8, 2022 · 5 comments
Open

conda environment not respected #143

dellaert opened this issue Jan 8, 2022 · 5 comments

Comments

@dellaert
Copy link
Member

dellaert commented Jan 8, 2022

When I do cmake in a given conda environment, somehow it does not pick on that and I have to manually change python executable and version. (I needed a 3.8 version, are we requiring a higher version anywhere, and if so why?)

@ProfFan
Copy link
Collaborator

ProfFan commented Jan 8, 2022

You need to remove the build folder and redo CMake after you switch.

@dellaert
Copy link
Member Author

dellaert commented Jan 8, 2022

You need to remove the build folder and redo CMake after you switch.

I did

@ProfFan
Copy link
Collaborator

ProfFan commented Jan 8, 2022

I do think this is abnormal, but again this depends on how CMake is searching for the Python library. I would try https://stackoverflow.com/a/36439709 first.

@dellaert
Copy link
Member Author

dellaert commented Jan 8, 2022

So, it's my problem, not wrap's :-) ?

@dellaert
Copy link
Member Author

Same problem!

cmake -DPYTHON_EXECUTABLE=/Users/dellaert/miniforge3/envs/py310/bin/python ..

worked again. HOWEVER, to me, if you are in a conda environment when executing cmake.., it should use that environment's interpreter. Same for other environment managers.

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

2 participants