Hello everyone,
I would like to ask about Python's Windows environment variables.
I have added python directory to "PYTHON" in user and system variable as follow.
Also in "Path" of user and system variable.
This is it.
[Image: 2lcprnl.jpg]
And I had rebooted a computer then test to run python command with some script in cmd and
work fine.
[Image: 34ss7id.jpg]
But when I try to install "electron" which is npm package in Node.js programming by command "npm install electron",it required python and it is not detect a python.
Am I miss something?
I find answer for myself and it might be helpful for someone in the future.
There is nothing wrong with path but some Python dependencies may required
Python 2 or 3 so you can install both of them on the same computer as It will not overwrite on each other.
In this case I installed Python 3 first but the electron package which required
node-gyp package which required Python 2 so it is not detected.
I would like to ask about Python's Windows environment variables.
I have added python directory to "PYTHON" in user and system variable as follow.
Quote:C:\Users\Rocky\AppData\Local\Programs\Python\Python36\
Also in "Path" of user and system variable.
Quote:%PYTHON%
Quote:C:\Users\Rocky\AppData\Local\Programs\Python\Python36\Scripts\
This is it.
[Image: 2lcprnl.jpg]
And I had rebooted a computer then test to run python command with some script in cmd and
work fine.
[Image: 34ss7id.jpg]
But when I try to install "electron" which is npm package in Node.js programming by command "npm install electron",it required python and it is not detect a python.
Am I miss something?
I find answer for myself and it might be helpful for someone in the future.
There is nothing wrong with path but some Python dependencies may required
Python 2 or 3 so you can install both of them on the same computer as It will not overwrite on each other.
In this case I installed Python 3 first but the electron package which required
node-gyp package which required Python 2 so it is not detected.