

If you have a non-conda pip as your default pip but conda python is your default python (as below) >which -a pip Or you could use your python version associated with anaconda !python3.6 -m pip install package-name In your jupyter notebook, you can install python packages through pip in a cell this way !pip install package-name
CONDA INSTALL PACKAGE CODE
If it is version 10.x.x or above, then install your python package with this line of code subprocess.check_call() If you have pip installed in anaconda you can run the following in jupyter notebook or in your python shell that is linked to anaconda pip.main()Ĭheck your version of pip with pip._version_. Since some of the conda packages may lack support overtime it is required to install using pip and this is one way to do it It will automatically install to the anaconda environment without having to use conda install package-name

This should now successfully install packages using that virtual environment's pip!Īll you have to do is open Anaconda Prompt and type pip install package-name Install new packages by doing /anaconda/envs/venv_name/bin/pip install package_name. It should be somewhere like /anaconda/envs/venv_name/. This will install pip to your venv directory.įind your anaconda directory, and find the actual venv folder. Run conda create -n venv_name and conda activate venv_name, where venv_name is the name of your virtual environment.

For others who run into this situation, I found this to be the most straightforward solution:
