anaconda cannot find pip3 and do not want to use pip or pip2

anaconda, django-rest-framework, pip, python

Solution

Try Using this:

conda create --name <env_name> python=3

It will create a new virtual environment using python 3 for conda. You may install your packages using `conda install <package_name>` after activating your environment.

Refer here for more on conda environments.

Problem

I have pip installed in my anaconda3 folder, but pip3 is installed in another folder in /usr/lib/python3/dist-packages (not in anaconda folder which is in my home folder). How I do install pip3 for anaconda so I can use pip3 to install djangorestframework in my virtual environment? I cannot use the pip3 in the /usr/lib/ folder because I would need to sudo, I do not want to use sudo.

Original source