Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

anaconda - path environment variable in windows

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:\windows\system32>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:\users\xxx\anaconda3 c:\users\xxx\anaconda3\Scripts c:\users\xxx\anaconda3\libs\python34 

and none of them works.

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

like image 873
Alejandro Simkievich Avatar asked Dec 01 '15 21:12

Alejandro Simkievich


People also ask

Where is the Anaconda path in Windows?

To find where Anaconda was installed I used the "where" command on the command line in Windows. The where command is a nifty trick. My installation is at C:\Users\User-Name\Anaconda3\Scripts\anaconda.exe .


1 Answers

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 
like image 53
Alejandro Simkievich Avatar answered Oct 03 '22 07:10

Alejandro Simkievich