user697911
user697911

Reputation: 10531

Does pip install packages into my conda environment?

If I have created an environment with the 'conda create' command, then I activated it:

conda activate myEnv

Now if I want to install a package with 'conda install' to 'myEnv', but this package isn't in the conda repository. So I have to install it with the 'pip' command:

pip install newPackage

In this case, is the newPackage installed into 'myEnv', or it will be installed outside of the conda environment.

Upvotes: 5

Views: 6348

Answers (1)

Warm_Duscher
Warm_Duscher

Reputation: 1176

Yes, it should be installed in myEnv.

You can use which pip in Linux to check whether your environment's pip is called or the one from outside.

For the pip in your environment, it will be a path similar to <path to anaconda environment>/bin/pip.

Upvotes: 4

Related Questions