Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command 'python' not found inside conda environment [duplicate]

I am using Ubuntu 20.04 WSL on MS Windows 10. I installed anaconda from the homepage (https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh) and tried to create a new environment as the following image.

enter image description here

As you can see, I just create a new environment and switch to that, and I found no Python command.

I did echo $PATH and got

/home/my_username/anaconda3/envs/test/bin:/home/my_username/anaconda3/condabin:

at the beginning of the PATH already.

How could I fix the problem? Thanks

like image 493
mommomonthewind Avatar asked Nov 06 '25 17:11

mommomonthewind


1 Answers

I found the issue

When creating a new environment, we need to specify the version of Python

conda create -n test python=3.8

like image 94
mommomonthewind Avatar answered Nov 10 '25 01:11

mommomonthewind



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!