Muhammad Raihan Muhaimin
Muhammad Raihan Muhaimin

Reputation: 5729

Conda new env used non conda python in mac

I am using MAC OSX Catalina 10.15.5, I had multiple versions of python tangled my python environment, after cleaning up one issue I am facing with Anaconda. When I use the base environment it showed python as /Users/falcon/opt/anaconda3/bin/python3 but when I create a new environment and activate using conda create -n foo afterward conda activate foo, it shows python location as /usr/bin/python can anyone help me fix it?

Upvotes: 0

Views: 354

Answers (1)

Stuart Berg
Stuart Berg

Reputation: 18162

As @merv mentioned in the comments, conda environments do not come with any installed packages by default. If you are merely running:

conda create -n foo
conda activate foo

Then the foo environment will not have python installed. Try this:

conda create -n foo python=3.7
conda activate foo

Or this:

conda create -n foo
conda activate foo
conda install python=3.7

Upvotes: 2

Related Questions