Skip to content
This repository has been archived by the owner on Apr 13, 2018. It is now read-only.

Installed Anaconda at the wrong place (Mac OSX) #12

Closed
pllim opened this issue Nov 7, 2016 · 3 comments
Closed

Installed Anaconda at the wrong place (Mac OSX) #12

pllim opened this issue Nov 7, 2016 · 3 comments

Comments

@pllim
Copy link
Contributor

pllim commented Nov 7, 2016

"I tried to install Anaconda. However, I installed it in the /Applications/ dir instead of my home-dir. I gather from "The OS X GUI installer may cause side-effects, such as changing permissions of files in your home directory to root:wheel, or mistakenly creating a system-wide installation under /anaconda instead of your personal home directory. “ that it should have been in the home-dir instead? If so, how do I correct this?
Also, when I type ‘conda’ it states "conda: Command not found.“
Do you have suggestions on how to proceed or shall I wait until tomorrow morning for the installation help session?"

@pllim pllim added question and removed question labels Nov 7, 2016
@jhunkeler
Copy link

jhunkeler commented Nov 7, 2016

  • Delete /Applications/anaconda (or /Applications/anaconda3 in the case of Python 3)
  • Use the .sh installer instead of the .pkg variant

If they can no longer edit their .bashrc: sudo chmod 644 ~/.bashrc
If they no longer own .bashrc: sudo chown username: ~/.bashrc (yes the ':' suffix is required so the group is reset as well)

If the installer doesn't do this for them, they need to add the following to the end of their .bashrc, then open a new terminal:

# example path... use a valid path here
export PATH=$HOME/path/to/anaconda/bin:$PATH

@dnhyde
Copy link

dnhyde commented May 31, 2017

Hi instead of reinstalling everything I added a symlink to conda (assuming everything is fine in .profile or .bash_profile or .bashrc).
I did the following and it worked for me:
ln -s "Applications/anaconda/bin/conda" /usr/local/bin/conda

Hope this helps

@freemansion
Copy link

thanks @dnhyde. I had another issue with conda and your solution solved it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants