3

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?

Community
  • 1
  • 1
pexea12
  • 1,069
  • 2
  • 18
  • 36

1 Answers1

6

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
foglerit
  • 7,792
  • 8
  • 44
  • 64