@@ -19,7 +19,7 @@ file a new issue.
19
19
* [ OpenSSL asm support] ( #openssl-asm-support )
20
20
* [ Previous versions of this document] ( #previous-versions-of-this-document )
21
21
* [ Building Node.js on supported platforms] ( #building-nodejs-on-supported-platforms )
22
- * [ Note about Python 2 and Python 3 ] ( #note-about-python-2-and-python-3 )
22
+ * [ Note about Python] ( #note-about-python )
23
23
* [ Unix and macOS] ( #unix-and-macos )
24
24
* [ Unix prerequisites] ( #unix-prerequisites )
25
25
* [ macOS prerequisites] ( #macos-prerequisites )
@@ -225,29 +225,23 @@ Consult previous versions of this document for older versions of Node.js:
225
225
226
226
## Building Node.js on supported platforms
227
227
228
- ### Note about Python 2 and Python 3
229
-
230
- The Node.js project supports both Python 3 and Python 2 for building.
231
- If both are installed Python 3 will be used. If only Python 2 is available
232
- it will be used instead. When possible we recommend that you build and
233
- test with Python 3.
228
+ ### Note about Python
234
229
230
+ The Node.js project supports Python >= 3 for building and testing.
235
231
### Unix and macOS
236
232
237
233
#### Unix prerequisites
238
234
239
235
* ` gcc ` and ` g++ ` >= 8.3 or newer, or
240
236
* GNU Make 3.81 or newer
241
- * Python (see note above)
242
- * Python 2.7
243
- * Python 3.5, 3.6, 3.7, and 3.8
237
+ * Python 3.6, 3.7, 3.8, and 3.9 (see note above)
244
238
245
239
Installation via Linux package manager can be achieved with:
246
240
247
- * Ubuntu, Debian: ` sudo apt-get install python g++ make `
248
- * Fedora: ` sudo dnf install python gcc-c++ make `
249
- * CentOS and RHEL: ` sudo yum install python gcc-c++ make `
250
- * OpenSUSE: ` sudo zypper install python gcc-c++ make `
241
+ * Ubuntu, Debian: ` sudo apt-get install python3 g++ make `
242
+ * Fedora: ` sudo dnf install python3 gcc-c++ make `
243
+ * CentOS and RHEL: ` sudo yum install python3 gcc-c++ make `
244
+ * OpenSUSE: ` sudo zypper install python3 gcc-c++ make `
251
245
* Arch Linux, Manjaro: ` sudo pacman -S python gcc make `
252
246
253
247
FreeBSD and OpenBSD users may also need to install ` libexecinfo ` .
@@ -256,10 +250,8 @@ Python 3 users may also need to install `python3-distutils`.
256
250
257
251
#### macOS prerequisites
258
252
259
- * Xcode Command Line Tools >= 11 for macOS
260
- * Python (see note above)
261
- * Python 2.7
262
- * Python 3.5, 3.6, 3.7, and 3.8
253
+ * Xcode Command Line Tools >= 10 for macOS
254
+ * Python 3.6, 3.7, 3.8, and 3.9 (see note above)
263
255
264
256
macOS users can install the ` Xcode Command Line Tools ` by running
265
257
` xcode-select --install ` . Alternatively, if you already have the full Xcode
@@ -568,7 +560,7 @@ to run it again before invoking `make -j4`.
568
560
569
561
##### Option 1: Manual install
570
562
571
- * [ Python 3.8 ] ( https://www.python.org/downloads/ )
563
+ * [ Python 3.9 ] ( https://www.microsoft.com/en-us/p/python-39/9p7qfqmjrfp7 )
572
564
* The "Desktop development with C++" workload from
573
565
[ Visual Studio 2019] ( https://visualstudio.microsoft.com/downloads/ ) or
574
566
the "Visual C++ build tools" workload from the
@@ -606,8 +598,7 @@ packages:
606
598
607
599
* [ Git for Windows] ( https://chocolatey.org/packages/git ) with the ` git ` and
608
600
Unix tools added to the ` PATH `
609
- * [ Python 3.x] ( https://chocolatey.org/packages/python ) and
610
- [ legacy Python] ( https://chocolatey.org/packages/python2 )
601
+ * [ Python 3.x] ( https://chocolatey.org/packages/python )
611
602
* [ Visual Studio 2019 Build Tools] ( https://chocolatey.org/packages/visualstudio2019buildtools )
612
603
with [ Visual C++ workload] ( https://chocolatey.org/packages/visualstudio2019-workload-vctools )
613
604
* [ NetWide Assembler] ( https://chocolatey.org/packages/nasm )
0 commit comments