Skip to content

Commit 18db7fb

Browse files
lucyleeowjorisvandenbossche
authored andcommitted
DOC: Improve compiler installation instructions (#28316)
1 parent c82f57d commit 18db7fb

File tree

1 file changed

+38
-3
lines changed

1 file changed

+38
-3
lines changed

doc/source/development/contributing.rst

+38-3
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,44 @@ operations. To install pandas from source, you need to compile these C
135135
extensions, which means you need a C compiler. This process depends on which
136136
platform you're using.
137137

138-
* Windows: https://devguide.python.org/setup/#windows-compiling
139-
* Mac: https://devguide.python.org/setup/#macos
140-
* Unix: https://devguide.python.org/setup/#unix-compiling
138+
**Windows**
139+
140+
You will need `Build Tools for Visual Studio 2017
141+
<https://visualstudio.microsoft.com/downloads/>`_.
142+
143+
.. warning::
144+
You DO NOT need to install Visual Studio 2019.
145+
You only need "Build Tools for Visual Studio 2019" found by
146+
scrolling down to "All downloads" -> "Tools for Visual Studio 2019".
147+
148+
**Mac OS**
149+
150+
Information about compiler installation can be found here:
151+
https://devguide.python.org/setup/#macos
152+
153+
**Unix**
154+
155+
Some Linux distributions will come with a pre-installed C compiler. To find out
156+
which compilers (and versions) are installed on your system::
157+
158+
# for Debian/Ubuntu:
159+
dpkg --list | grep compiler
160+
# for Red Hat/RHEL/CentOS/Fedora:
161+
yum list installed | grep -i --color compiler
162+
163+
`GCC (GNU Compiler Collection) <https://gcc.gnu.org/>`_, is a widely used
164+
compiler, which supports C and a number of other languages. If GCC is listed
165+
as an installed compiler nothing more is required. If no C compiler is
166+
installed (or you wish to install a newer version) you can install a compiler
167+
(GCC in the example code below) with::
168+
169+
# for recent Debian/Ubuntu:
170+
sudo apt install build-essential
171+
# for Red Had/RHEL/CentOS/Fedora
172+
yum groupinstall "Development Tools"
173+
174+
For other Linux distributions, consult your favourite search engine for
175+
commpiler installation instructions.
141176

142177
Let us know if you have any difficulties by opening an issue or reaching out on
143178
`Gitter`_.

0 commit comments

Comments
 (0)