ResolvePackageNotFound: Create env using conda and yml file on MacOS

后端 未结 6 1276
逝去的感伤
逝去的感伤 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:30

    There can be another reason for the 'ResolvePackageNotFound' error -- the version of the packages you require might be in an old version of the repository that is not searched by default.

    The different paths to locations in the Anaconda repositories can be found at:
    https://repo.continuum.io/pkgs/

    My yml file [NW_BI.yml] is as follows:

    name: NW_BI
    channels:
    - 'https://repo.continuum.io/pkgs/free' # Remove this line and it fails!!!
    - conda-forge
    - defaults
    dependencies:
    - python=2.7.10
    - pandas=0.16.2
    - pyodbc=3.0.10
    

    Create using:

    conda env create -f 'path to file'\NW_BI.yml
    

    I wanted to recreate an old environment!!!!

    Note using:
    Anaconda3 2019.10
    Windows10

提交回复
热议问题