python – How do you conda install a library in an environment created with virtualenv?

python – How do you conda install a library in an environment created with virtualenv?

I think the easiest approach would be to create a conda env by it’s own.

1) Create a requirement.txt file by doing pip freeze > requirements.txt inside your virtualenv environment

2) Create conda env: conda create --name myenv

3) Activate your environment: source activate myenv

4) Install your dependencies: conda install --file requirements.txt

5) Install missing dependecy: conda install YOUR_MISSING_DEPENDENCY

python – How do you conda install a library in an environment created with virtualenv?

Leave a Reply

Your email address will not be published.