when i am trying to install the dependencies using npm install from openzeppelin.it shows error as Error: Can't find Python executable "python", you can set the PYTHON env variable.
1 Answer
Windows has a built-in dialog for changing environment variables (following guide applies to XP classical view): Right-click the icon for your machine (usually located on your Desktop and called “My Computer”) and choose Properties there. Then, open the Advanced tab and click the Environment Variables button.
In short, your path is:
My Computer ‣ Properties ‣ Advanced ‣ Environment Variables
In this dialog, you can add or modify User and System variables. To change System variables, you need non-restricted access to your machine (i.e. Administrator rights).
Another way of adding variables to your environment is using the set command:
set PYTHONPATH=%PYTHONPATH%;C:\My_python_lib
To make this setting permanent, you could add the corresponding command line to your autoexec.bat. msconfig is a graphical interface to this file.
Viewing environment variables can also be done more straight-forward: The command prompt will expand strings wrapped into percent signs automatically:
echo %PATH%
-
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review– Ismael ♦Commented Sep 19, 2018 at 16:54
-