Skip to content

Commit 57c9988

Browse files
Cheuktingdatapythonista
authored andcommitted
Documentation for Window users [#40] (#47)
* Clone form github * Cloned from Github * Added comments for Window users * change instruction for Window users * Fixed typo
1 parent 7eb9a45 commit 57c9988

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

pandas/guide/source/pandas_setup.rst

+28-2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ via pip, conda or a zip.
3838

3939
To get the latest development version:
4040
* Fork the `pandas repository <https://github.com/pandas-dev/pandas>`_ on GitHub by click on the top-right `Fork` button
41+
42+
.. note::
43+
For **Window Users**: download git for Windows <https://gitforwindows.org/>
44+
and run Git Bash in the directory where you want the copy of pandas source
45+
code with the following commends.
46+
4147
* In the terminal of your computer, in the directory where you want the copy of pandas source code, run:
4248

4349
| ``git clone https://github.com/<your-github-username>/pandas``
@@ -57,7 +63,12 @@ repository:
5763
3.a Python environment with Anaconda
5864
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5965

60-
* Download and install `Anaconda <https://www.anaconda.com/download/>`_
66+
* Download and install `Anaconda <https://www.anaconda.com/download/>`
67+
68+
.. note::
69+
For **Window users**, go to the start menu, find Anaconda Prompt inside the Anaconda floder
70+
and run the above commends in Anaconda Prompt
71+
6172
* Activate conda by one of the next (or equivalent, if you know what you're doing):
6273
* If you chose to prepend Anaconda to your PATH during install adding it to your ``~/.bashrc``, just restart your terminal.
6374
* Otherwise, run ``export PATH="<path-to-anaconda>/bin:$PATH"`` in your terminal. Keep in mind that it will be active exclusively in the terminal you run this command.
@@ -68,6 +79,7 @@ repository:
6879
* Install pandas development dependencies:
6980
``conda install -c defaults -c conda-forge --file=<pandas-dir>/ci/requirements-optional-conda.txt``
7081

82+
7183
3.b Python environment with virtualenv and pip
7284
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7385

@@ -79,6 +91,17 @@ TODO
7991
Besides the Python `.py` files, pandas source code includes C/Cython files
8092
which need to be compiled in order to run the development version of pandas.
8193

94+
.. note::
95+
For **Window Users**, you'll need to install the compiler toolset:
96+
97+
For Python 3.6 - Install Visual Studio 2017, select the Python development workload
98+
and the Native development tools option <https://www.visualstudio.com/>
99+
100+
For Python 2.7 - Microsoft Visual C++ Compiler for Python 2.7
101+
<https://www.microsoft.com/download/details.aspx?id=44266>
102+
103+
After the installation, run the following commends in Anaconda Prompt
104+
82105
To compile these files simply run:
83106
| ``cd <pandas-dir>``
84107
| ``python setup.py build_ext --inplace``
@@ -93,6 +116,9 @@ to work on. Once you know which, you need to create a git branch for your
93116
changes. This will be useful when you have finished your changes, and you want
94117
to submit a pull request, so they are included in pandas.
95118

119+
.. note::
120+
For **Window users** run above commends with Git Bash at the cloned pandas floder
121+
96122
You can create a git branch running:
97123
| ``git checkout -b <new_branch_name>``
98124
@@ -107,4 +133,4 @@ To check in which branch are you:
107133
| ``git branch``
108134
109135
To change to another branch:
110-
| ``git checkout <branch_name>``
136+
| ``git checkout <branch_name>``

0 commit comments

Comments
 (0)