From the steps indicated I think you should open your terminal and follow theses steps :
- First go in the folder indicated :
cd <your_python_path>\Lib\distutils
.
- Second - according to the author of the article, a file named
cygwinccompiler.py
is supposed to be present, the patch is supposed to be applied on it.
- Third download (or copy as you prefered) the patch file in the current directory, lets name the patch file
patch.diff
(for reminder here is its link https://bugs.python.org/file40608/patch.diff).
- Then you must run :
pip install patch
python -m patch patch.diff
Since the name of the file to patch is present in patch.diff
you do not have to precise the destination file.