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.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.
- Set up Opencv with anaconda environment
- Python | Add packages to Anaconda environment
- Set up virtual environment for Python using Anaconda
- Environment setup for CherryPy
- Environment Setup for Matplotlib
- Setup OpenCV With PyCharm Environment
- How to install Anaconda on Linux?
- How to install Anaconda on windows?
- PYTHONPATH Environment Variable in Python
- Python Virtual Environment | Introduction
- Creating Python Virtual Environment in Windows and Linux
- Create virtual environment using venv | Python
- Using mkvirtualenv to create new Virtual Environment - Python
- Python - Setting up the Bokeh Environment
- Environment Variables in Python
- Python | Django-allauth setup and Configuration
- Setup API for GeeksforGeeks user data using WebScraping and Flask
- Setup Sending Email in Django Project
- Convert Python Code to a Software to Install on Windows Using Inno Setup Compiler
- How to Setup Sublime Text 3 for Python in Windows?
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. 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.