How to install https://www.anaconda.com/products/individual not just for Administrator?
I was trying to install it from GUI but installation for all users was disabled:
-
1Are the different users on the same machine? Or are you running from a server?– NatsfanCommented Sep 11, 2020 at 23:35
-
@jmh different (non admin) for same macbook– slavaCommented Sep 12, 2020 at 7:51
1 Answer
If you want to make Anaconda available to all Users from the Individual Edition, using the, e.g. Anaconda3-2020.07-MacOSX-x86_64.pkg package from the download link at the bottom of the linked web page, e.g. 64-Bit Graphical Installer (462 MB), then do the following:
From an Admin account...
- Download e.g.: Anaconda3-2020.07-MacOSX-x86_64.pkg
- Install it to: /Users/Shared
- Select Install on a specific disk... and navigate to /Users/Shared on the Macintosh HD.
After the GUI install...
For the User doing the original install of Anaconda, if
bash
is your default shell you should be set because the GUI installer sets up what's necessary in~/.bash_profile
, however, ifzsh
is your default shell, run the following commands1 in Terminal:Note: For each additional User, steps 3 thru 5 are required regardless of your default shell.
1 For each additional User setting up, if
bash
is your default shell just useconda init
in step 3.source /Users/Shared/anaconda3/bin/activate conda init zsh
For
zsh
the~/.zshrc
file is created or written to in this step.
Close the current Terminal window and open another.
To control whether or not each shell session has the base environment activated or not, run
conda config --set auto_activate_base False or True
. To run conda from anywhere without having the base environment activated by default, useconda config --set auto_activate_base False
. This only works if you have runconda init
orconda init zsh
first.
With that done, each User only has to run steps 3 thru 5 from Terminal when logged into their account to have access to what was installed by the Admin from the original GUI install of Anaconda.
-
Recent versions have improved and write to both
~/.bash_profile
and~/.zshrc
(if available). Not sure about steps 4 & 5 (had only 1 account on my Mac).– Dut A.Commented Oct 10, 2021 at 14:09