I'm trying to install nodejs packages with command npm install
but error appears:
Error:command failed c:\... Python\PYTHON. EXE - C import sys; "%s %s %s" % sys. Vwrsion_info
File <string>, Line 1
Syntax error invalid syntax
I have python3 installed. Maybe Python is needed? Any help?
Add python to the windows path. You probably have python install for the current user rather than in the program files where it is looking for it.
search for "path" in the windows start menu and Click Environment Variables...
Select PATH in the System variables section Click Edit Add Python's path to the end of the list (the paths are separated by semicolons). For example:
C:\\Windows;C:\\Windows\\System32;C:\\Python3.7...
You can find the path to the python exe by right clicking the shortcut and looking at the link address. You should add the python base folder and python\\Scripts folder to the path
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.