ResolvePackageNotFound: Create env using conda and yml file on MacOS

后端 未结 6 1280
逝去的感伤
逝去的感伤 2020-12-15 04:02

I want to create a virtual environment using conda and yml file.

Command:

conda env create -n ex3 -f env.yml

Type ENTER it gives fo

6条回答
  •  一向
    一向 (楼主)
    2020-12-15 04:40

    I got the same issue and found a GitHub issue related to this. In the comments, @kalefranz posted an ideal solution by using the --no-builds flag with conda env export.

    conda env export --no-builds > environment.yml
    

    However, even remove build numbers, some packages may still have different version number at different OS. The best way I think is to create different env yml file for different OS.

    Hope this helps.

提交回复
热议问题