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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With