Python Environmental variable

Place for questions and answers for all newcomers and new coders. This is a free for all forum, no question is too stupid and to noob.
Post Reply
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Python Environmental variable

Post 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
Cayle
Posts: 272
Joined: Fri Jul 03, 2009 4:45 am

Re: Python Environmental variable

Post 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.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Python Environmental variable

Post 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
Post Reply

Return to “Beginner Help and Support”