Hello readers, Today In this article I am going to show you how to Solve – Can’t find Python executable “python”, you can set the PYTHON env variable error in NodeJs. So here I will explain all the possible solutions.
Without wasting your time, Let’s start This Article to Solve This Error.
How Can’t find Python executable “python”, you can set the PYTHON env variable Error Occurs?
This is a common error in NodeJs. When I am trying to run NPM package. but, I am facing following error. It looks as like below:
Can't find Python executable "python", you can set the PYTHON env variable.
So here are all the possible solutions that I tried to fix this error.
How To Solve Can’t find Python executable “python”, you can set the PYTHON env variable Error?
- How To Solve Can’t find Python executable “python”, you can set the PYTHON env variable Error?
To Solve Can’t find Python executable “python”, you can set the PYTHON env variable Error First you just need to add python to your PATH variable. One thing you can do Edit your Path variable now and add ;%PYTHON%; Your variable PYTHON should point to the root directory of your python installation. I hope now your error will be solved.
- Can’t find Python executable “python”, you can set the PYTHON env variable Error?
To Solve Can’t find Python executable “python”, you can set the PYTHON env variable Error You just need to install windows-build-tools and then your error will be solved. Just run this command in your your terminal: npm install -g windows-build-tools and now, your error must be solved.
Solution 1: set PATH variable
First you have to add python to your PATH variable and add ;%PYTHON;
Just run this command in your terminal.
C:\Python34;C:\Python34\Scripts;
Now your error must be solved.
Solution 2: Install windows-build-tools
You need to install windows-build-tools then your error will be solved. Just run this command in your terminal.
npm install -g windows-build-tools
Now, your error will be solved.
Conclusion
In this article, we have discussed what causes the error and we have discussed ways to fix the error.
we hope this article has been informative. Thank you for reading. Kindly comment and let us know if you found it helpful.