While Trying to do the setup node in windows. I needed to install one node package called jdbc to connect with impala. after running npm install jdbc
giving the error as Error: Can't find Python executable "C:\Program Files\Python30\", you can set the PYTHON env variable.
Environment variable also set. But still it is giving the same error.
Could anyone please help me in resolving this error. If not, Is there any node package available to connect to impala.
Asked
Active
Viewed 4,487 times
0

Thilak Raj
- 880
- 3
- 10
- 25
-
PYTHON is probably the full path to the python executable, not just the directory. – Jean-François Fabre Dec 12 '18 at 14:41
-
besides, have you restarted your computer or at least checked that the variable is defined in the shell you're running? – Jean-François Fabre Dec 12 '18 at 14:42
-
@Jean-FrançoisFabre tried till executable and attached screenshot. no luck yet. tried restarting the computer also. once i run python version , it will give the python version – Thilak Raj Dec 12 '18 at 15:12
-
Have you tried with: npm config set python "c:\Python\36\python.exe" with proper path of course... – szogoon Dec 12 '18 at 15:25
2 Answers
0
To be able to run Python from cmd you need the environment variable to point it to the .exe file, and after that reopen cmd window.

Martin Jansson
- 62
- 7
-
-
1you're adding a _file_ to the `PATH` env. variable... doesn't work at all – Jean-François Fabre Dec 12 '18 at 15:13
-
1@ThilakRaj it seems that [Running Python on Windows for Node.js dependencies](https://stackoverflow.com/questions/15126050/running-python-on-windows-for-node-js-dependencies) answers this question. – Martin Jansson Dec 12 '18 at 15:32
-1
Here's possibly a solution:
Try setting python variable with:
npm config set python "c:\Python\27\python.exe"
Adjust the path of course.
(source: https://github.com/nfroidure/ttf2woff2/issues/28#issuecomment-327419138)

Jean-François Fabre
- 137,073
- 23
- 153
- 219

szogoon
- 470
- 3
- 15
-
it looks there's some interesting info in this link, but using a link to answer a question doesn't cut it here. Paste relevant parts in the answer instead – Jean-François Fabre Dec 12 '18 at 15:25
-
-
too bad that your first version had only the link. Would have saved upvotes. – Jean-François Fabre Dec 12 '18 at 15:34