Fix the Result of conda env list and conda info -e Are Different

By | September 4, 2024

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:

conda env list command

Use conda info -e command, we will see:

conda info -e command

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

cat conda-env command

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

vi conda-env command

Step 3: run conda env list

Then, we will find conda env list command is ok.

conda env list is ok

Leave a Reply