使用构建参数安装 conda 包

Installing a conda package with build arguments

我想知道是否可以安装 conda 包并将参数传递给正在构建的包。在 homebrew 中,可以执行 brew install emacs --with-cocoabrew install ffmpeg --with-x265 等。但是,conda install -c conda-forge emacs --with-cocoa 试图将 --with-cocoa 传递给 conda install,但失败了。是否可以将这些类型的参数传递给 conda 的构建过程?也许像 conda install -c conda-forge emacs --build-args="--with-cocoa".

据我所知,答案是不可以。但是,您可以使用 Conda build recipes 之类的东西来自定义您的安装。

对于您的 emacs 示例,这可能有用:https://github.com/conda/conda-recipes/tree/master/emacs 以便更好地理解。

我不知道这是否满足您的用例要求。如果没有,我会敲下这个答案,看看是否有更合理的解决方案。希望对您有所帮助!