Set the channel_priority in Conda environment.yaml(在CONDA环境中设置CHANNEL_PRIORITY。yaml)
问题描述
是否可以在使用YAML文件创建环境时将channel_priority
设置为strict
?例如:
name: my_environment
channels:
- conda-forge
dependencies:
- python
- geopandas
- rasterio
推荐答案
感谢merv。
解决方法是为每个包指定频道:
name: my_environment
channels:
- conda-forge
dependencies:
- conda-forge::python
- conda-forge::geopandas
- conda-forge::rasterio
这篇关于在CONDA环境中设置CHANNEL_PRIORITY。yaml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!