Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ubuntu says virtualenv is not installed but pip says it is

I am trying to create another virtual environment (I already installed one using the typical instructions found here: http://docs.python-guide.org/en/latest/dev/virtualenvs/) so I run:

$ virtualenv experimental

-> The program 'virtualenv' is currently not installed. You can install it by typing: sudo apt install virtualenv

I checked to see if perhaps the program needed to be updated:

$ pip install virtualenv --upgrade

-> Requirement already up-to-date: virtualenv in /home/uniside/.local/lib/python2.7/site-packages

Any ideas about what is going on here?

like image 808
Bob Sherwin Avatar asked May 18 '16 16:05

Bob Sherwin


People also ask

Does virtualenv install pip?

Activating a virtual environmentAs long as your virtual environment is activated pip will install packages into that specific environment and you'll be able to import and use packages in your Python application.


1 Answers

The answer by @khrm didn't worked for me.

I was able to do this with :

sudo apt install virtualenv
like image 50
Procrastinator Avatar answered Nov 16 '22 02:11

Procrastinator