Skip to content Skip to sidebar Skip to footer

How To Install Packages Into Specific Virtualenv Created By Conda

I want to install python packages after virtualenv is created by conda. But I got the following error, does anyone know how to install packages into virtualenv created by conda ? /

Solution 1:

First, enter into an environment that you have created by the following command:

activate your_environment_name

Then, you will be in particular in your environment. Now, you can install numpy using this command:

conda install -c anaconda numpy

Solution 2:

I didn't use conda but as far as I understand from the docs, it should work like this:

  1. Create your env conda create --name snowflakes biopython
  2. Activate your env source activate snowflakes
  3. Install what you need conda install what-you-want or pip install what-you-want

Solution 3:

From the help:

Target Environment Specification: -n ENVIRONMENT, --name ENVIRONMENT Name of environment.

So all you need is to do: conda install -n YOUR_ENVIRONMENT_NAME PACKAGE


Post a Comment for "How To Install Packages Into Specific Virtualenv Created By Conda"