Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any ways to use Anaconda as a package manager which is the same as npm?

What I would like to do is to save all the dependencies to a file which is the same as package.json and when I go to another computer, I only have to do something like conda install to install all the dependencies of the project. Those packages will not be installed globally, only in the project folder. I know that I can create a virtual environment with conda but there is no file which contains the list of all the dependencies.

I search for that but cannot find any sufficient answers: Is there a project file support like npm/package.json for Python's pip?

like image 378
pexea12 Avatar asked Oct 31 '25 20:10

pexea12


1 Answers

Yes, you can absolutely do that. Complete instructions are here

Specifically, once you have an environment setup in one machine, you can create a file with dependencies:

conda env export > environment.yml

And then recreate it exactly in another machine with:

conda env create -f environment.yml
like image 63
foglerit Avatar answered Nov 02 '25 08:11

foglerit



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!