pip: Could not find an activated virtualenv (required)

Open your ~/.bashrc file and see if this line is there –


It might be causing the trouble. If it’s there, change it to false and run –

source ~/.bashrc

If not, run export PIP_REQUIRE_VIRTUALENV=false from terminal.

Note: everything works the same if you have .bash_profile instead of .bashrc in your current user’s root directory.

Leave a Comment