gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-30 02:56:08 34 4
gpt4 key购买 nike

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

当我调用命令 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,它为我解决了这个问题。

关于python - 从 pypi 包构建 conda 骨架会抛出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40392161/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com