Как добавить anaconda в path windows

Anaconda is 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 languages. Spyder sub application of Anaconda is used for python. Opencv for python will work in spyder. Package versions are managed by the package

Improve Article

Save Article

  • Read
  • Discuss
  • Improve Article

    Save Article

    Anaconda is 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 languages. 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:

    Windows

    • Download Anaconda for Python. Make sure to download the “Python 3.7 Version” for the appropriate architecture. 

    Anaconda-version-download-Windows

    • 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 set up the environment variable. 
      Go to Control Panel -> System and Security -> System 
      Under the Advanced System Setting option click on Environment Variables as shown below: 

    Advanced System SettingsSetting up Environment variable

    • 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. 

    Adding new Path

    • Click on OK, Save the settings and it is done !! Now to check whether the installation is done correctly, open the command prompt and type anaconda-navigator. It will start the anaconda navigator App if installed correctly. 

    Linux

    In Linux, there are several ways to install Anaconda. But we will refer to the simplest and easy way to install Anaconda using the 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 the following steps: 

    • Go to Application -> Accessories -> Terminal
    • For setting up Environment Variable, type the following command in the Terminal with the use of the Installation path: 
    export ANACONDA = /home/nikhil/anaconda3

    • For setting up the Environment Value, type the following command in the Terminal with the use of the 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. 
       

    Improve Article

    Save Article

  • Read
  • Discuss
  • Improve Article

    Save Article

    Anaconda is 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 languages. 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:

    Windows

    • Download Anaconda for Python. Make sure to download the “Python 3.7 Version” for the appropriate architecture. 

    Anaconda-version-download-Windows

    • 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 set up the environment variable. 
      Go to Control Panel -> System and Security -> System 
      Under the Advanced System Setting option click on Environment Variables as shown below: 

    Advanced System SettingsSetting up Environment variable

    • 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. 

    Adding new Path

    • Click on OK, Save the settings and it is done !! Now to check whether the installation is done correctly, open the command prompt and type anaconda-navigator. It will start the anaconda navigator App if installed correctly. 

    Linux

    In Linux, there are several ways to install Anaconda. But we will refer to the simplest and easy way to install Anaconda using the 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 the following steps: 

    • Go to Application -> Accessories -> Terminal
    • For setting up Environment Variable, type the following command in the Terminal with the use of the Installation path: 
    export ANACONDA = /home/nikhil/anaconda3

    • For setting up the Environment Value, type the following command in the Terminal with the use of the 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. 
       

    I am trying to run python from the windows command prompt (windows 10). So the result is the typical one when the path environment variable is not configured

     c:windowssystem32>python
    'python' is not recognized as an internal or external command, operable
     program or batch file
    

    however, I am not sure which is the right directory I should set up in the path variable.

    I tried a few variations, and none of them work, including:

    c:usersxxxanaconda3
    c:usersxxxanaconda3Scripts
    c:usersxxxanaconda3libspython34
    

    and none of them works.

    Does anyone have experience with this particular system constellation (windows, anaconda). Thanks.

    asked Dec 1, 2015 at 21:19

    Alejandro Simkievich's user avatar

    it turns out I was mistaken.

    Solution is: in anaconda (as well as in other implementations), set the path environment variable to the directory where ‘python.exe’ is installed.

    As a default, the python.exe file in anaconda is in:

    c:.....anaconda
    

    after you do that, obviously, the python command works, in my case, yielding the following.

    python
    Python 3.4.3 |Anaconda 2.2.0. (64|bit)|(default, Nov 7 2015), etc, etc
    

    answered Dec 1, 2015 at 21:26

    Alejandro Simkievich's user avatar

    2

    Instead of giving the path following way:

    C:UsersUser_nameAppDataLocalContinuumanaconda3python.exe
    

    Do this:

    C:UsersUser_nameAppDataLocalContinuumanaconda3
    

    Tshilidzi Mudau's user avatar

    answered Dec 20, 2017 at 19:01

    KAMLESH KARKI's user avatar

    1

    The default location for python.exe should be here: c:usersxxxanaconda3
    One solution to find where it is, is to open the Anaconda Prompt then execute:

    > where python
    

    This will return the absolute path of locations of python eg:

    (base) C:>where python
    C:UsersChadAnaconda3python.exe
    C:ProgramDataMiniconda2python.exe
    C:devPython27python.exe
    C:devPython34python.exe
    

    answered Jan 28, 2019 at 0:33

    Chad Hamilton Frederick's user avatar

    C:Users\Anaconda3

    I just added above path , to my path environment variables and it worked.
    Now, all we have to do is to move to the .py script location directory, open the cmd with that location and run to see the output.

    answered Mar 18, 2018 at 10:17

    Piyush Upadhyay's user avatar

    C:Users<Username>AppDataLocalContinuumanaconda2
    

    For me this was the default installation directory on Windows 7. Found it via Rusy’s answer

    answered Oct 18, 2017 at 14:40

    fivef's user avatar

    fiveffivef

    2,27720 silver badges21 bronze badges

    0

    In windows 10 you can find it here:

    C:Users[USER]AppDataLocalcondacondaenvs[ENVIRONMENT]python.exe

    answered Jan 28, 2018 at 16:55

    Arman Fatahi's user avatar

    Arman FatahiArman Fatahi

    2,4253 gold badges23 silver badges37 bronze badges

    1

    To export the exact set of paths used by Anaconda, use the command echo %PATH% in Anaconda Prompt. This is needed to avoid problems with certain libraries such as SSL.

    Reference: https://stackoverflow.com/a/54240362/663028

    answered Feb 11, 2019 at 2:01

    prusswan's user avatar

    prusswanprusswan

    6,7764 gold badges39 silver badges60 bronze badges

    You can also run conda init as below,

    C:ProgramDataAnaconda3Scriptsconda init cmd.exe
    

    or

    C:ProgramDataAnaconda3Scriptsconda init powershell
    

    Note that the execution policy of powershell must be set, e.g. using Set-ExecutionPolicy Unrestricted.

    Telcrome's user avatar

    Telcrome

    3612 silver badges13 bronze badges

    answered Oct 29, 2019 at 5:21

    Matt's user avatar

    I want to mention that in some win 10 systems, Microsoft pre-installed a python. Thus, in order to invoke the python installed in the anaconda, you should adjust the order of the environment variable to ensure that the anaconda has a higher priority.

    V

    answered Nov 5, 2020 at 5:17

    zhenlingcn's user avatar

    zhenlingcnzhenlingcn

    7628 silver badges20 bronze badges

    2

    Try path env var for system (on windows)

    C: …Anaconda3

    C: …Anaconda3scripts

    C: …Anaconda3Librarybin

    Must solve! It worked for me.

    answered Feb 23, 2022 at 21:35

    Bigumangaba's user avatar

    You could also just re-install Anaconda, and tick the option add variable to Path.. This will prevent you from making mistakes when editing environment variables. If you make mistakes here, your operating system could start malfunctioning.

    answered Oct 4, 2018 at 6:51

    Psychotechnopath's user avatar

    PsychotechnopathPsychotechnopath

    2,5594 gold badges24 silver badges42 bronze badges

    Provide the Directory/Folder path where python.exe is available in Anaconda folder like

    C:Usersuser_nameAnaconda3
    

    This should must work.

    answered Oct 4, 2020 at 6:22

    Sunil Singh's user avatar

    Sunil SinghSunil Singh

    1872 silver badges12 bronze badges

    How to setup Anaconda path to environment variable ?

    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:

    Windows

    Linux

    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.

    Понравилась статья? Поделить с друзьями:
  • Как добавить ammyy admin в автозагрузку windows 10
  • Как добавить airpods pro на windows 10
  • Как добавить aimp в контекстное меню windows 10
  • Как добавить ahci драйвер в windows xp
  • Как добавить active directory в windows server 2012