Page 1 of 1

Python Environmental variable

Posted: Wed Jul 25, 2012 9:43 pm
by hallsofvallhalla
So I am working with some Node and need python. So I installed python and now in my npm i am getting

Code: Select all

gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack     at failNoPython (C:\wamp\www\fs\node_modules\npm\node_modules
\node-gyp\lib\configure.js:95:14)
gyp ERR! stack     at C:\wamp\www\fs\node_modules\npm\node_modules\node-gyp\lib\
configure.js:59:11
gyp ERR! stack     at Object.oncomplete (fs.js:297:15)
gyp ERR! System Windows_NT 6.1.7600
gyp ERR! command "node" "C:\\wamp\\www\\fs\\node_modules\\npm\\node_modules\\nod
e-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\wamp\www\fs\node_modules\websocket
gyp ERR! node -v v0.8.4
gyp ERR! node-gyp -v v0.6.1
gyp ERR! not ok
I have tried setting the variable in widows but same error. Anyone know what I am doing wrong? Python32

Re: Python Environmental variable

Posted: Thu Jul 26, 2012 5:11 am
by Cayle
Can you start the interactive python interpreter? I mean, that if you open a command prompt window and type in "python", do you get an error, or do you see the ">>>", which is the interactive python cursor? As a general rule, you can always try something in the interactive intrepeter to see if it is a python config problem, or an IDE config problem.

Re: Python Environmental variable

Posted: Thu Jul 26, 2012 2:01 pm
by hallsofvallhalla
nope, some reason my envormental variable will not work

Code: Select all

C:\wamp\www\fs>
C:\wamp\www\fs>python
'python' is not recognized as an internal or external command,
operable program or batch file.

C:\wamp\www\fs>
Image