We usually can use conda env list or conda info -e to show all cond virtual environments. However, the result of between may be different. In this tutorial, we will introduce how to fix.
For example
If we use conda env list command, we may see:
Use conda info -e command, we will see:
We will find the results between them are different.
How to fix this error?
Here are some steps to solve this problem.
Step 1: view the content of cond-env file in miniconda3/bin
cat conda-env
We will find the python path is incorrect in the first row.
Step 2: edit the conda-env and set the correct python path
vi conda-env
Step 3: run conda env list
Then, we will find conda env list command is ok.