anaconda – CondaValueError: could not parse | conda create -n myenv –file package-list.txt

Following this conda docs tutorial; I created a package-list.txt of a conda venv I want to copy.

I tried:

$ conda create -n myenv --file package-list.txt

CondaValueError: could not parse 'absl-py                   0.15.0                   pypi_0    pypi' in: yasmine.txt
$ conda env create --file yasmine.txt -n yasmine

CondaValueError: invalid package specification: backcall                  0.2.0              pyh9f0ad1d_0    conda-forge

How do I install from this file in a new venv?

I want to use this text file format.


# packages in environment at C:\Users\username\Anaconda3\envs\fastai:
# Name                    Version                   Build  Channel
absl-py                   0.15.0                   pypi_0    pypi
astunparse                1.6.3                    pypi_0    pypi
backcall                  0.2.0              pyh9f0ad1d_0    conda-forge

Read more here: Source link