From 0cdce9c665c9efe3c9cafbe948d0f3133138f616 Mon Sep 17 00:00:00 2001 From: Jeff Bonhag Date: Tue, 6 May 2014 14:04:25 -0400 Subject: [PATCH] Make sure gyp uses Python 2 (#1933) gyp/npm uses /usr/bin/python to build, which is a problem on systems where /usr/bin/python is Python 3 or higher. Fortunately, you can tell npm which Python to use. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 660129736..b45eb75e6 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ Atom will automatically update when a new release is available. * Ubuntu LTS 12.04 64-bit is the recommended platform * [node.js](http://nodejs.org/) * `sudo apt-get install libgnome-keyring-dev` + * `npm config set python /usr/bin/python2 -g` to ensure that gyp uses Python 2 ```sh git clone https://github.com/atom/atom