You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

修改项目conda recipe后是否需重渲染feedstock?操作报错求助

关于conda-forge Feedstock与Rerender操作的困惑

我对conda-forge的feedstock以及何时需要执行**rerender(重新渲染)**感到困惑。我的项目链接了libGL,在查找需添加的CDT包时,参考了conda-forge官方文档,文档最后提示:

You will need to re-render the feedstock after making these changes.

这让我产生疑问:修改自身项目的conda recipe,是否确实需要执行重新渲染feedstock的操作?我多次尝试执行conda smithy rerender -c auto命令均失败,报错信息如下:

第一次执行命令的报错

$ conda smithy rerender -c auto
INFO:conda_smithy.configure_feedstock:Downloading conda-forge-pinning-2023.03.18.10.09.36
INFO:conda_smithy.configure_feedstock:Extracting conda-forge-pinning to /tmp/tmp_kk_rkwr
Traceback (most recent call last):
  File "/home/dbanas/miniconda3/bin/conda-smithy", line 10, in <module>
    sys.exit(main())
  File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/cli.py", line 669, in main
    args.subcommand_func(args)
  File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/cli.py", line 485, in __call__
    self._call(args, tmpdir)
  File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/cli.py", line 490, in _call
    configure_feedstock.main(
  File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/configure_feedstock.py", line 2272, in main
    config = _load_forge_config(forge_dir, exclusive_config_file, forge_yml)
  File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/configure_feedstock.py", line 1832, in _load_forge_config
    raise RuntimeError(
RuntimeError: Could not find config file /home/dbanas/prj/PyBERT/conda-forge.yml. Either you are not rerendering inside the feedstock root (likely) or there's no `conda-forge.yml` in the feedstock root (unlikely). Add an empty `conda-forge.yml` file in feedstock root if it's the latter.

创建conda-forge.yml后的报错

$ touch conda-forge.yml

$ conda smithy rerender -c auto
INFO:conda_smithy.configure_feedstock:Downloading conda-forge-pinning-2023.03.18.10.09.36
INFO:conda_smithy.configure_feedstock:Extracting conda-forge-pinning to /tmp/tmp3qlwn8vo
INFO:conda_smithy.configure_feedstock:__pycache__ rendering is skipped
INFO:conda_smithy.configure_feedstock:README rendering is skipped
Traceback (most recent call last):
  File "/home/dbanas/miniconda3/bin/conda-smithy", line 10, in <module>
    sys.exit(main())
  File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/cli.py", line 669, in main
    args.subcommand_func(args)
  File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/cli.py", line 485, in __call__
    self._call(args, tmpdir)
  File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/cli.py", line 490, in _call
    configure_feedstock.main(
  File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/configure_feedstock.py", line 2318, in main
    render_azure(env, config, forge_dir, return_metadata=True)
  File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/configure_feedstock.py", line 1412, in render_azure
    return _render_ci_provider(
  File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/configure_feedstock.py", line 636, in _render_ci_provider
    with open(
FileNotFoundError: [Errno 2] No such file or directory: '/home/dbanas/prj/PyBERT/recipe/meta.yaml'

错误指定路径后的报错

$ conda smithy rerender -c auto conda.recipe/enable/
usage: conda smithy [-h] [--version]
                    {init,register-github,register-ci,azure-buildid,regenerate,rerender,recipe-lint,ci-skeleton,update-cb3,generate-feedstock-token,register-feedstock-token,update-anaconda-token,rotate-anaconda-token,update-binstar-token,rotate-binstar-token}
                    ...
conda smithy: error: unrecognized arguments: conda.recipe/enable/

希望有人能为我解惑。

内容的提问来源于stack exchange,提问作者David Banas

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.27 19:44:55