Setting up software requirements (environment) is the first and the most important step in getting started with Machine Learning. It takes a lot of effort to get all of those things ready at times. When we finish preparing for the work environment, we will be halfway there.
In this article, you’ll learn how to use Anaconda to build up a Python machine learning development environment. These instructions are suitable for both Windows and Linux systems.
This essay’s content:
- 1. Steps are to install Anaconda in Windows & Ubuntu.
- 2. Creating & Working On Conda Environment
- 3. Walkthrough on ML Project
Anaconda is a Python and R programming language package management, environment manager, and distribution that is open-source. Data science, machine learning, large-scale data processing, scientific computing, and predictive analytics are all popular applications.
The Anaconda distribution comes with 250 open-source data packages, with over 7,500 more available via the Anaconda repositories. It also includes the conda command-line tool and a desktop GUI called Anaconda Navigator.
How To Install Anaconda on Windows 10
The set to the anaconda in the windows
- 1. Go to anaconda website
- 2. Download based on your Operating set up (64x or 32x) for windows
- 3. After Anaconda has finished downloading, double-click the.exe file to start the installation process.
- 4. Then, until the installation of Windows is complete, follow the on-screen instructions.
- 5. Don’t forget to add the path to the environmental variable. The benefit is that you can use Anaconda in your Command Prompt, Git Bash, cmder, and so on.
- 6. If you like, you can install Microsoft VSCode, but it’s not required.
- 7. Click on Finish.
- 8. Open a Command Prompt. If the conda is successfully installed then run conda -V or conda –version in the command prompt and it will pop out the installed version.
How To Install Anaconda on Ubuntu 20.04 & Derivatives
Anaconda3-2021.11-Linux-x86_64.sh is the most recent stable version at the time of writing this post. Check the Downloads page to see whether there is a new version of Anaconda for Python 3 available for download before downloading the installation script.
Downloading the newest Anaconda installer bash script, verifying it, and then running it is the best approach to install Anaconda. To install Anaconda on Ubuntu 20.04, follow the steps below:
- 1. Install the following packages if you’re installing Anaconda on a desktop system and want to use the GUI application.
$ sudo apt install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6
- 2. Download the Anaconda installation script with wget
$ wget -P /tmp https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-x86_64.sh
change the anaconda version if you have downloaded different versions.
- 3. To begin the installation procedure, run the script:
$ bash /tmp/Anaconda3-2021.11-Linux-x86_64.sh
- 4. You’ll receive the following output:
Welcome to Anaconda3 2021.11 In order to continue the installation process, please review the license agreement. Please, press ENTER to continue >>>
Press ENTER to continue. Type yes to accept the license, and you’ll be prompted to choose the installation location.
For most people, the default location should suffice. To confirm the location, press ENTER.
The script will ask you if you want to run conda init once the installation is complete, which may take some time. Type yes.
- 5. Enter the following bash command to activate the Anaconda installation.
$ source ~/.bashrc
After that, you’ll be in Anaconda’s default base programming environment, and your command prompt will change to:
Start using it by entering anaconda-navigator in your terminal:
To update the anaconda to the latest version, open and enter the following command:
(base) aarati@ubuntu:~$ conda update --all -y
Creating & Working on Conda Environment
Anaconda virtual environments let us specify specific package versions. You can specify which version of Python to use for each Anaconda environment you create.
(base) aarati@ubuntu:~$ conda create --name my_env python=3.8
You can activate your new environment by typing the following:
(base) aarati@ubuntu:~$ conda activate my_env
You can deactivate your environment by typing:
(my_env) aarati@ubuntu:~$ conda deactivate
With this command, you can see the list of all of the environments you’ve created:
(base)aarati@ubuntu:~$ conda info --envs
Getting Started With Jupyter Notebook
Jupyter Notebooks are capable of performing data visualization in the same environment and are strong, versatile, and shared. Data scientists may use Jupyter Notebooks to generate and distribute documents ranging from code to full-fledged reports.
You can directly launch Juypter through the terminal using the following command:
(my_env) aarati@ubuntu:~$ jupyter notebook
Then click NEW, then Python3 and the following will appear on the screen.
Now we are all done with being ready for Machine learning.
ML Projects To Start With (Tutorial + Code)
Hello ! I am Aarati Dhungel You can mail me at email@example.com if you have any queries regarding the project.
One Comment on “How To Install the Anaconda Python on Windows 11 & Ubuntu 20.04 Linux”
Interesting post, thanks for sharing.