I recently moved miniconda2 to another directory and now I can't activate the conda environment. Please any suggestion to resolve this problem.

bash: conda: command not found

1 Answer 1


What I said initially is wrong, amending PATH will not suffice.

If the anaconda documentation is something to go by. You can't just move directories.

You will have to uninstall conda and reinstall to the new place.

  • don't forget to substitute /new/path/to/conda with where you actually put miniconda2
    – Fynn
    Jun 30, 2021 at 10:25
  • Thank you for your answer. Actually it keeps looking for conda in the old directory. How can I change the path in bash please. Jun 30, 2021 at 10:29
  • With the command that I put in the answer, but please don't just copy and paste, but actually read through the linked article first. That might make things clearer
    – Fynn
    Jun 30, 2021 at 10:30
  • or are you saying, that it looks in the old dir even though you did that?
    – Fynn
    Jun 30, 2021 at 10:32
  • Yes it keeps looking in the old directory even though I did that. Jun 30, 2021 at 10:35

Not the answer you're looking for? Browse other questions tagged .