anaconda – resolving two python interpreter paths in one conda environment

When I install package using “conda install numpy or tensorflow”, sometimes it will update my python interpreter in that environment. During the update pycharm will give an error about python SDK not found. After the update, when I call where python I get two paths


When I call python -c "import sys; print(sys.executable)"
The first python python interpreter is used, which is undesirable because it changes python version and interpreter choice.

How do I make conda respect my python path C:\Users\<user>\.conda\envs\<env_name>\python.exeand install the compatible package version?

Second question: When I get two paths in “where python”, how do I remove the wrong path directly? Currently I have to delete the conda environment and reinstall everything.

Read more here: Source link