Reputation: 1690
If I want to share anaconda environments, I could export using conda env export > py35.yml
and import it in another server using conda env create -f py35.yml
.
It works well if they are in same flavor of Linux. How to copy the environment from Linux to Windows?
If there are no matching packages in Windows, it fails with
Error: No packages found in current win-64 channels matching: packagename
Is there a way to ignore packages that couldn't be installed and move on to installing others, instead of hard fail?
Upvotes: 3
Views: 1554
Reputation: 57
Try using --from-history
flag when exporting. In the documentation, it says this removes platform dependencies from the package list.
Full command would look like something like this:
conda env export --from-history -> py35.yml
Upvotes: 1