Accidentally installed Anaconda in two places

I accidentally installed the Python Anaconda distribution in two different places: my home directory and my hard drive. Since I first installed it on my hard drive, python packages were installed there, not in my home directory. Then I retired to the anaconda folder on my hard drive. But now, when I try to run conda to install the package through my terminal, I get the following error.

-bash: //anaconda/bin/conda: No such file or directory

How can I switch it so that conda works and installs packages in my home directory?

I made a team

echo $PATH 

and he gave me

//anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin.

In addition, I did

which -a conda

and nothing appeared. I literally just bought a Macbook Air and in Yosemite.

+4
source share
1

anaconda PATH ~/.bash_profile. , - :

# added by Miniconda 3.6.0 installer
export PATH="//anaconda/bin:$PATH"

export PATH="<path-to-your-anaconda-in-home>/bin:$PATH", conda .

, :

# added by Miniconda 3.6.0 installer
export PATH="/Users/ch/miniconda/bin:$PATH"
+2

Source: https://habr.com/ru/post/1609369/


All Articles