Reputation: 10531
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
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