Install Anaconda on Windows & Ubuntu


anaconda install

This post may contain affiliate links/ads and I may earn a small commission when you click on the links/ads at no additional cost to you. As an Amazon Affiliate, I earn from qualifying purchases. You can read my full disclaimer here.

In this post, we are going to cover how to install anaconda distribution in windows and Linux.

Go on, grab some snacks because installation may take some time.

Now let’s get started.

So first of all WHAT IS ANACONDA? (FYI This post is not about snake species :P)

In simple terms, Anaconda Distribution is a package that consists of python and many other useful libraries (including “Jupyter notebook” which is also a great library for beginners to learn python.) that helps Data scientists, IT professionals, Executives, hobbyists, Developers and also students to work on their project without any difficulties.

If you want to read more about anaconda then head on to this link, where you can read about it in detail.

Anaconda distribution can be easily installed on Windows, Mac, and Linux. The process is almost the same.

Follow the steps:

Download :

You can easily download anaconda from their official website for free, follow this link www.anaconda.com/downloads and download for your specific operating system.

There are two versions of python available Python 3.x and Python 2.7 and 32-bit and 64-bit installers, so choose according to your needs.


Here, I am installing on Windows so I am downloading the version highlighted in the image

Please note: For those who have limited bandwidth. There is also a Miniconda which is basically a small version of anaconda.

Install :

Now you have downloaded the anaconda package, let’s install it.

Install Anaconda: Windows 10

1.) Double click the installer file.

2.) Click next.

Starting Anaconda installation.

3.) Click I agree

Agree to terms.

4.) Choose your preferred option here. (I am going to leave it as recommended) and click next.

Select your preferred option here.

5.) Choose the destination folder (If you are a beginner I recommend to leave it as it is) and click next.

select installation location.

6.) If you are installing python for the first time on your system, then make sure both the boxes are checked. (Yes! I recommend to check the box even it says not recommended, because of this we can call anaconda from the command line.)

Check the boxes.

7.) And click on install.

Installing…

8.) Please wait till the installation is finished it may take some time depending on your system. Then Click on next

Installation completed.

9.) Now it’s asking to install Microsoft VScode(if you want you can install, I don’t need it so I am clicking on skip)

Optional VSCode.

10.) Click on finish.

Finally, It’s Over.

Finally, installation has finished.

Install Anaconda: Linux (I am using Ubuntu)

1.) Login to a Normal User (Don’t use root unless you want to face error.)

2.) Open the Terminal and navigate to the directory where you have downloaded Anaconda installer file. (In my case, it’s the “Downloads” directory)

Navigate to Anaconda installer file.

3.) Let’s check the installer file using the list command with the attribute -l (for detailed list) of Linux (“ls -l”).

Check the permissions.

4.) As you can see, in the above image, we don’t have permission to execute the anaconda installer file (Anaconda3-2018.12-Linux-x86_64.sh). So let’s provide the executable permission using the “chmod” command.

Make executable.

5.) You can check the permissions again and verify if the command worked successfully.

Check permissions again.

6.) Now, we can run the installer file.

Run the installer.

7.) As the installer suggests, Hit enter key to continue.

Enter to continue.

8.) The most obvious part, Accept the terms by typing “yes”.

Type “yes” (Unless you have some better idea)

9.) Specify your preferred location or Press enter to confirm the given location. (I have no problem with the given location, so I am confirming it by hitting “Enter”)

Choose installation location.

9.) Installation started, Please be patient until it finishes. (There is no better time than this for a coffee.)

Installation started.

10.) After it finishes, you will be asked to initialize anaconda to “bashrc” file. Type “yes” and hit enter.

YES!

11.) If you prefer to install Microsoft VSCode type “yes” but I don’t need it, so I am skipping it. (To skip type “no”)

There you go, you have successfully installed Anaconda on your Linux system.

Start Anaconda

In Windows:

  1. Click on start
  2. Click on Anaconda navigator

OR

       1.)   Press Win+R

Win+R

       2.)   Type cmd in the run dialog.

       3.)   Hit Ok (then command prompt will open)

Run anaconda-navigator through windows CMD

       4.)   Type “anaconda-navigator” and hit enter.

In Linux:

1.) Open the Terminal and type “anaconda-navigator” and hit Enter.

anaconda-navigator

Start Jupyter Notebook

After starting anaconda-navigator click on Launch button for Jupyter notebook.

Launch Jupyter notebook.

A web browser window will automatically open for you. (If not, then open your web browser and navigate to http://localhost:8888/tree)

Jupyter Notebook.

Click on new then select python3 notebook(It will open in a new tab)

Type “hello world” using python print statement and click on run or hit shift+enter on keyboard.

Hello World!!

Congrats!!! you have successfully installed anaconda. If you encounter any errors, please feel free to ask in the comment section.

If you like this post, then follow Techsphinx on Facebook and Twitter for more reviews, tricks, tips and tutorials.


Like it? Share with your friends!

Rahul R Nair

Rahul is obsessed with technology and programming. He is also the founder of TechSphinx. Being a technophile, he is always busy doing some techy stuff or learning about the latest technologies. When not busy with his usual routine (staring at the computer screen) he likes to write and share his knowledge with the world.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x