Open cccyrusss opened 4 years ago
I have a related issue, which maybe should be its own issue. #11739 is also related.
I'm new to the anaconda github, so please advise.
I work in a Mac OS 10.14.6 (Mojave) tcsh environment . After installing anaconda3 (conda 4.8.3 on 2020-10-12), my PATH was not modified to have either anaconda3/bin or anaconda3/condabin. That may be because I have (had) no ~/.bashrc file, which the installer mentioned. It seems that if the installer fails to find an expected file, it should stop and print a message.
When I tried to remove and reinstall anaconda3, it told me that it was already installed
in /opt/anaconda3, which was a clue that would have been useful when I was trying to find
the command conda
after the first installation.
The installer should state where it's installing anaconda, to help people deal with
different versions of OS and anaconda leading to conda
being put in a variety of places,
which may not end up in the user's PATH.
After some searching I found it in /opt/anaconda/condabin/conda,
which I added to my PATH (in my .cshrc file). Now my system knows where to find it.
Now I've discovered(?) that .bashrc is not the relevant file (see #9830), and the relevant file is not consistent with the installer: ~/.bash_profile:
__conda_setup="$('/opt/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" if [ $? -eq 0 ]; then eval "$__conda_setup" else if [ -f "/opt/anaconda3/etc/profile.d/conda.sh" ]; then . "/opt/anaconda3/etc/profile.d/conda.sh" else export PATH="/opt/anaconda3/bin:$PATH" fi fi
The package was installed in /opt/anaconda3/condabin, not .../bin. So it looks like the wrong path would be added to my PATH even if I were using bash.
Actual Behavior
After following the instructions on anaconda.com, I managed to install anaconda successfully. I didn't type
conda init
manually cuz I typed yes. However, anaconda3/condabin was added to my PATH instead of anaconda3/bin, and when I runwhich python
outside my conda virtual environment,/usr/bin/python
was displayed. Tried runningwhich python3
, still is not an anaconda3 Python.anaconda3/bin only appears on my PATH after
conda activate
. CheersExpected Behavior
I think anaconda3/bin should be added to the original PATH instead of anaconda3/condabin
Steps to Reproduce
typing
which python
orecho $PATH
Anaconda or Miniconda version:
Anaconda version: 2020.02
Operating System: Mac OSX Catalina with a bash
conda info
conda list --show-channel-urls