Skip to content

Instantly share code, notes, and snippets.

@cmd-save
Last active October 25, 2017 09:37
Show Gist options
  • Select an option

  • Save cmd-save/242761353323d91e9de2a6de63da3670 to your computer and use it in GitHub Desktop.

Select an option

Save cmd-save/242761353323d91e9de2a6de63da3670 to your computer and use it in GitHub Desktop.
Install python 2.7 on Linux

Nodejs/NPM don't work well yet with python 3. Here's how to solve it.

Install Python 2.7

wget --no-check-certificate https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz
tar -xzf Python-2.7.11.tgz  
cd Python-2.7.11

./configure  
make  
sudo make instal

Set npm config

npm config set python <python exe path here>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment