Anaconda is an open-source software that contains Jupyter, spyder, etc that are used for large data processing, data analytics, heavy scientific computing. Anaconda works for R and python programming language. Spyder(sub-application of Anaconda) is used for python. Opencv for python will work in spyder. Package versions are managed by the package management system called conda.
What is the environment variable?
Environment variables basically define the behavior of the environment. They can affect the processes ongoing or the programs that are executed in the environment. The region from which this variable can be accessed or over which it is defined is termed as the scope of the variable.
Steps for setting up the environment variable:
- Download Anaconda for Python. Make sure to download the “Python 3.7 Version” for the appropriate architecture.
- After the download is over, go through How to install Anaconda on windows? and follow the given instructions.
- After the installation is done, we need to setup the environment variable.
Go to Control Panel -> System and Security -> System
Under Advanced System Setting option click on Environment Variables as shown below:
- Now, we have to alter the “Path” variable under System variables so that it also contains the path to the Anaconda environment. Select the “Path” variable and click on the Edit button as shown below:
- We will see a list of different paths, click on the New button and then add the path where Anaconda is installed.
- Click on OK, Save the settings and it is done !! Now to check whether the installation is done correctly, open command prompt and type anaconda-navigator. It will start the anaconda navigator App, if installed correctly.
In Linux, there are several ways to install Anaconda. But we will refer to the simplest and easy way to install Anaconda using terminal. Go through How to install Anaconda on Linux? and follow the instructions. Generally, the Path variable is automatically set in Linux at the time of installation, but it can also be set manually by following steps:
- Go to Application -> Accessories -> Terminal
- For setting up Environment Variable, type the following command in the Terminal with the use of Installation path:
export ANACONDA = /home/nikhil/anaconda3
- For setting up the Environment Value, type the following command in the Terminal with the use of Installation path:
export PATH = $PATH:/home/nikhil/anaconda3/bin
- It is done!! Now to check whether the installation is done correctly, open Terminal and type anaconda-navigator. It will start the anaconda navigator App, if installed correctly.
- Set up Opencv with anaconda environment
- Python | Add packages to Anaconda environment
- Set up virtual environment for Python using Anaconda
- Environment Setup for Matplotlib
- Environment setup for CherryPy
- How to install Anaconda on Linux?
- How to install Anaconda on windows?
- Python | Django-allauth setup and Configuration
- Setup Sending Email in Django Project
- How to Setup Sublime Text 3 for Python in Windows?
- Python Virtual Environment | Introduction
- Python - Setting up the Bokeh Environment
- Setup API for GeeksforGeeks user data using WebScraping and Flask
- Create virtual environment using venv | Python
- Using mkvirtualenv to create new Virtual Environment - Python
- Creating Python Virtual Environment in Windows and Linux
- Estimation of Variable | set 1
- Estimation of Variable | set 2
- Protected variable in Python
- Python | Check if a variable is string
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.