Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

setting python2 in the path for npm install

If Python is installed using a package manager, it should already be on your path.
But if installed using 'msi/exe', then add "C:Python27" to Environment-User-variable PATH (or the location where it is installed)
Node-gyp requires Python 2.x and cannot use Python 3.x

If path is required only at the specific directory, then try below:
npm config set python C:Python27python.exe
Comment

PREVIOUS NEXT
Code Example
Python ::  
Python ::  
Python :: figure in matplotlib 
::  
Python :: find the median of input number in a list and print 
:: binary tree deletion 
Python :: python int to scientific string 
::  
:: python get global variable by name 
::  
::  
Python ::  
Python :: python datetime make timezone aware 
Python :: how to get left click input in pygame 
Python :: array slicing python 
:: django-storages delete folder 
Python ::  
::  
:: display column names as a dictionary pandas 
::  
Python :: what is in the python built in namespace 
:: check if binary tree is balanced python 
Python ::  
Python ::  
:: python prevent print output 
::  
:: Pivot Spark data frame using python 
::  
Python ::  
:: pandas change string column to datetime 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =