Issue
I'm currently running vanilla python 3.7.3 with a few packages installed that are commonly used. Our group manages our projects by creating a new environment with virtualenv (virtualenv name_of_env
), building out a project and then exporting that environment to a requirements file which is shared with anyone in our group. The requirements files are then used to build ipykernels which are used in jupyter notebooks or building flask or dash apps.
I'm currently taking a class that wants us to use Anaconda and would like to create a virtualenv with the Anaconda base install packages. Is there anything like an "Anaconda requirements" file available that would allow me to install all the packages that the Anaconda base install uses without actually installing Anaconda?
As implied earlier, my ultimate goal is to create a virtual environment which I can use to build an ipykernel which can then be used for my class assignments without having to install Anaconda. I am aware that I can have multiple flavors or versions of python installed, but really don't want to do this unless it's necessary.
Solution
My suggestion is to normally use Anaconda and, once your env is fully set prepare a requirements.txt with the following command:
conda list -e > requirements.txt
This file can then be used with pip in a normal venv to install every requirement again:
pip install -r requirements.txt
If you really don't want to install Anaconda you can also use its minified version, miniconda.
Answered By - Pitto Answer Checked By - Willingham (WPSolving Volunteer)