我需要使用 conda 安装以下多个软件包。我不确定 conda-forge 是什么?有些使用 conda-forge,有些不使用它。是否可以将它们安装成一行而不需要一一安装?谢谢
conda install -c conda-forge dash-daq
conda install -c conda-forge dash-core-components
conda install -c conda-forge dash-html-components
conda install -c conda-forge dash-bootstrap-components
conda install -c conda-forge dash-table
conda install -c plotly jupyter-dash
Run Code Online (Sandbox Code Playgroud)
小智 20
我相信你可以把它们一一列出:
conda install -c conda-forge dash-daq dash-core-components
Run Code Online (Sandbox Code Playgroud)
aka*_*een 10
Conda 官方存储库仅包含一些经过验证的软件包。大部分可通过 pip 获得的 python 软件包都是通过名为conda-forge的社区主导渠道安装的。您可以访问他们的网站以了解更多信息。
安装多个包的推荐方法是创建一个.yml文件并将其提供给 conda。您还可以指定每个包的版本号。
以下示例文件可以通过以下方式输入 conda conda install --file:
appdirs=1.4.3
asn1crypto=0.24.0
...
zope=1.0
zope.interface=4.5.0
Run Code Online (Sandbox Code Playgroud)
要为该environment.yml文件中的每个包指定不同的通道,您可以使用以下::语法。
dependencies:
- python=3.6
- bagit
- conda-forge::beautifulsoup4
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
29047 次 |
| 最近记录: |