@@ -19,7 +19,7 @@ file a new issue.
1919 * [ OpenSSL asm support] ( #openssl-asm-support )
2020 * [ Previous versions of this document] ( #previous-versions-of-this-document )
2121* [ 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 )
2323 * [ Unix and macOS] ( #unix-and-macos )
2424 * [ Unix prerequisites] ( #unix-prerequisites )
2525 * [ macOS prerequisites] ( #macos-prerequisites )
@@ -225,29 +225,23 @@ Consult previous versions of this document for older versions of Node.js:
225225
226226## Building Node.js on supported platforms
227227
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
234229
230+ The Node.js project supports Python >= 3 for building and testing.
235231### Unix and macOS
236232
237233#### Unix prerequisites
238234
239235* ` gcc ` and ` g++ ` >= 8.3 or newer, or
240236* 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)
244238
245239Installation via Linux package manager can be achieved with:
246240
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 `
251245* Arch Linux, Manjaro: ` sudo pacman -S python gcc make `
252246
253247FreeBSD and OpenBSD users may also need to install ` libexecinfo ` .
@@ -256,10 +250,8 @@ Python 3 users may also need to install `python3-distutils`.
256250
257251#### macOS prerequisites
258252
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)
263255
264256macOS users can install the ` Xcode Command Line Tools ` by running
265257` xcode-select --install ` . Alternatively, if you already have the full Xcode
@@ -568,7 +560,7 @@ to run it again before invoking `make -j4`.
568560
569561##### Option 1: Manual install
570562
571- * [ Python 3.8 ] ( https://www.python.org/downloads/ )
563+ * [ Python 3.9 ] ( https://www.microsoft.com/en-us/p/python-39/9p7qfqmjrfp7 )
572564* The "Desktop development with C++" workload from
573565 [ Visual Studio 2019] ( https://visualstudio.microsoft.com/downloads/ ) or
574566 the "Visual C++ build tools" workload from the
@@ -606,8 +598,7 @@ packages:
606598
607599* [ Git for Windows] ( https://chocolatey.org/packages/git ) with the ` git ` and
608600 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 )
611602* [ Visual Studio 2019 Build Tools] ( https://chocolatey.org/packages/visualstudio2019buildtools )
612603 with [ Visual C++ workload] ( https://chocolatey.org/packages/visualstudio2019-workload-vctools )
613604* [ NetWide Assembler] ( https://chocolatey.org/packages/nasm )
0 commit comments