I am using a WSL system.
In my case, for the conda command to be added to the path, and persist, I had to do the following:
First:
vim ~/.bashrc
This will open the .bashrc file using Vim. You should go to the bottom of the file using the arrow keys, click i
to toggle the insert mode and paste: export PATH="$PATH:/home/userName/miniconda3/bin"
.
After that, save and close Vim using :wq.
(if you are not comfortable using Vim, you can use the nano
command instead)
nano ~/.bashrc
Second:
source ~/.bashrc
Third:
Close and open the terminal! This should work for everyone.
To test if it is working, try:
conda --version
/home/username/miniconda3/bin/conda
? – Persaudzsh
is set up to read.bashrc
(I doubt it, it's called._bash_rc
for a reason)? By defaultzsh
reads.zprofile
and.zshrc
, instead (plus.zlogin
for login shells). – Cavan