Run Anaconda and Applications including Jupyter Notebook, RStudio, and Spyder, easily on your system!
For Windows, Mac OS, and Linux machines.
Learning Outcomes
- How to download Anaconda
- How to download Applications in Anaconda Navigator (including Jupyter Notebook, RStudio, and Spyder)
Run Anaconda in Windows
1. Go to the official site of Anaconda
2. Select "Windows" where three operating systems are listed
3. Choose a Python release version. You may be prompted to enter your Work Email address, but note that you will still be able to download Anaconda if you click "No Thanks".
4. Run the downloaded .exe file and follow the default steps and instructions to install, including confirming the installation, agreeing to the license, and choosing the file path. Notes :
- Select an install for “Just Me”, unless you’re installing for all users which will require Windows Administrator privileges
- We recommend not adding Anaconda to the PATH environment variable, as this can interfere with other downloaded software. Instead, use Anaconda software by opening Anaconda Navigator or Anaconda Prompt from your Start Menu.
FAQ : Should I install the 32-bit version or the 64-bit version?
Note that the 64-bit version of R will not work on a 32-bit machine, but both the 32-bit and 64-bit versions will run seamlessly on 64-bit Windows. As such, it is recommended to install the 32-bit version if your production environment is 32-bit, because some packages might have compatibility issues.
Run Anaconda in macOS
You can install Anaconda using either the graphical installer (“wizard”) or the command line (“manual”) instructions. We recommend the graphical install, as detailed below.
1. Go to the official site of Anaconda
2. Select "MacOS" where three operating systems are listed
3. Choose a Python release version. You may be prompted to enter your Work Email address, but note that you will still be able to download Anaconda if you click "No Thanks".
4. Run the downloaded .pkg installer file and follow the default steps and instructions to install, including confirming the installation, agreeing to the license, and choosing the file path. Notes :
- We recommend that you install Anaconda for the current user. On the Destination Select screen, select Install for me only.
- We recommend that you install Anaconda in your ~/opt directory
- We recommend that you add Anaconda to your PATH environment variable
5. Source your .bash-rc file. You need to load the changes to your PATH environment variable in the current terminal session. To do so, open the MacOS Terminal and type :
$ cd ~
$ source .bashrc
Run Anaconda in Linux
Bear with me here, there are a few extra steps that you will need to follow!
The following steps are specifically for Ubuntu 18.04, but it should also work for other Debian-based Linux distributions.
1. Go to the official site of Anaconda
2. Select "Linux" where three operating systems are listed
3. Choose a Python release version and copy the bash (.sh file) installer link. For instance, in the Python 3.6 Version* box, right-click on the "64-Bit(x86) Installer" link, and select "copy link address" from the popup menu.
5. In a terminal, cd into the home directory to make a new directory called tmp. Then, cd into tmp and use wget to download the bash installer script. This is quite large and the download will take a couple of minutes. The link will include <release>, which is the specific release depending on the time in which you downloaded the installer.
$ cd ~
$ mkdir tmp
$ cd tmp
$ https://repo.continuum.io/archive/Anaconda3<release>.sh
6. Run the .sh bash script to install Anaconda3. Make sure that you are still in the directory where the installer script was downloaded :
$ ls
Anaconda3-5.2.0-Linux-x86_64.sh
Then, run the installer script with bash.
$ bash Anaconda3-5.2.0-Linux-x86_64.sh
Accept the Licence Agreement and allow Anaconda to be added to your PATH. This ensures that Anaconda distribution of Python will be called when you type "$ python" in a terminal.
7. Source the .bashrc file to add Anaconda to your PATH. In other words, load the new PATH environment variable into the current terminal session. Note that this file is in the home directory, and you can see it with "$ ls -a".
$ cd ~
$ source .bashrc
8. Start Python REPL to verify that the installation is complete. To do so, open Python from the command line :
$ python
Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 18:21:58)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
If you see your chosen Python version from Anaconda (Python 3.6 in this case) listed as the output, your installation is complete. To exit Python REPL, type :
>>> exit()
Success! You can now run Anaconda on your machine.
Install Applications in Anaconda Navigator
Jupyter Notebook, RStudio, and Spyder are amongst the many Applications offered in Anaconda Navigator.
To install these, go to "Home" on the left sidebar, and simply find the Application you want to install and select its "Install" button. Follow the default steps and instructions to install, which may include creating a new Environment in Anaconda Navigator. Then, select "Launch" to run the Application from Anaconda Navigator.
You are now all set to run Anaconda and Applications including Jupyter Notebook, RStudio, and Spyder on your system!
Comments