Using Pip to install packages to Anaconda Environment

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

  1. Run conda create -n venv_name and conda activate venv_name, where venv_name is the name of your virtual environment.
  2. Run conda install pip. This will install pip to your venv directory.
  3. Find your anaconda directory, and find the actual venv folder. It should be somewhere like /anaconda/envs/venv_name/.
  4. Install new packages by doing /anaconda/envs/venv_name/bin/pip install package_name.

This should now successfully install packages using that virtual environment’s pip!

Leave a Comment