"conda env list" always returns "y/N" and neither answer returns anything, yet "conda info --envs" works perfectly?

Viewed 1110

After moving miniconda3 to another path, and after fixing all paths in:

a, ~/.bashrc b, ~/bin/activate c, ~/bin/conda d, ~/etc/profile.d/conda.sh

I have a working conda and all my installations have been preserved. The only things that work abnormally are:

  1. conda env list returns y/N and neither the answer returns my env list, yet conda info --envs works perfectly and returns all my env names.
  2. pip --version returns an error message

bad interpreter: no such file or directory

Can anyone tell me, besides the four files above, if there is any file that I need to modify?

The list of files that might be related:

  • ~/miniconda3/condabin/conda
  • ~/miniconda3/bin/conda
  • ~/miniconda3/bin/conda-env
  • ~/miniconda3/bin/activate
  • ~/miniconda3/bin/deactivate
  • ~/miniconda3/etc/profile.d/conda.sh
  • ~/miniconda3/etc/fish/conf.d/conda.fish
  • ~/miniconda3/shell/condabin/Conda.psm1
  • ~/miniconda3/shell/condabin/conda-hook.ps1
  • ~/miniconda3/lib/python3.8/site-packages/xontrib/conda.xsh
  • ~/miniconda3/etc/profile.d/conda.csh
  • ~/.bashrc
2 Answers

Maybe you could try to modify your new path in ./bin/pip and ./bin/conda-env

conda init

this command can solve your problem

Related