Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

import conda package list to (default env)

Tags:

conda

anaconda

I have exported the package list using command

conda list --export > packagelist.txt

Since no environment name is specified, I supposed to just export the package name of the default environment (Am I right?) Then I want to import the package list to a new laptop and install this list of packages again, similarly, in the default environment

But I have googled the relevant answer, but majority of them are intended to create a new environment, like

conda create -n myenv2 --file myenv2.txt python=2 

which is not what I plan to do. which command should I choose to import the package list to default environment? Thank you.

like image 508
zlqs1985 Avatar asked Feb 01 '17 11:02

zlqs1985


1 Answers

As you mentioned, you can do:

conda list --export > packagelist.txt

And then if you want to install that in your default environment (instead of creating a new one) you can just do:

conda install --file packagelist.txt
like image 62
Paul Avatar answered Oct 13 '22 22:10

Paul