从 pypi 包构建 conda 骨架会抛出错误

Building conda skeleton from pypi package throws error

我正在尝试按照 http://conda.pydata.org/docs/build_tutorials/pkgs.html 上的教程从 pypi pyinstrument package 创建 conda 骨架。

当我调用命令 conda skeleton pypi pyinstrument 时,它抛出以下错误:

C:\WINDOWS\system32>conda skeleton pypi pyinstrument
Warning, the following versions were found for pyinstrument
0.10.1
0.11
0.12
0.13
0.13.1
Using 0.13.1
Use --version to specify a different version.
Using url https://pypi.python.org/packages/64/56/d7a0d48973dcf58ea74d5f004e16e9496
Downloading pyinstrument
Using cached download
Unpacking pyinstrument...
done
working in C:\Users\Peter\AppData\Local\Temp\tmpi40k4yslconda_skeleton_pyinstrumen

The following NEW packages will be INSTALLED:

    pip:            8.1.2-py35_0
    python:         3.5.2-0
    pyyaml:         3.12-py35_0
    setuptools:     27.2.0-py35_1
    vs2015_runtime: 14.0.25123-0
    wheel:          0.29.0-py35_0

Applying patch: 'C:\Users\Peter\AppData\Local\Temp\tmpi40k4yslconda_skeleton
        Error:
            Cannot use 'git' (not a git repo and/or patch) and did notfind 'patch' in:  C:\Users\Peter\Anaconda3\conda-bld\skeleton_1478133848196\_b_env\Scripts;..... 
            ...You can install 'patch' using apt-get, yum (Linux), Xcode (MacOSX),
            or conda, m2-patch (Windows),

尝试安装 py-stackexchange 包时也会抛出此错误,我做错了什么?

按照评论的建议,安装 patchm2-patch。 就我而言,我安装了 m2-patch 并为我解决了问题。