DavidGodwin
DavidGodwin

Reputation: 361

Has virtualenv installed correctly when `pip install virtualenv` outputs `using cached virtualenv`?

Context: Am working on the flaskr web project on Mac OS High Sierra.

Am at stage of installing Flask and I am running into issues with installing virtualenv: http://flask.pocoo.org/docs/0.12/tutorial/packaging/

When running the following line in Terminal:

pip install virtualenv

I get:

pip install virtualenv
Collecting virtualenv
Using cached virtualenv-15.2.0-py2.py3-none-any.whl
matplotlib 1.3.1 requires nose, which is not installed.
matplotlib 1.3.1 requires tornado, which is not installed.
matplotlib 1.3.1 has requirement numpy>=1.5, but you'll have numpy 
1.8.0rc1 which is incompatible.
Installing collected packages: virtualenv

I was expecting a response 'successfully installed virtualenv...' as appears in this video: https://youtu.be/-COGZITgHtw?t=1m9s.

Then, when running the following in Terminal:

virtualenv 

I get:

-bash: virtualenv: command not found 

I note others have had issues with ‘command not found’ (bash: pip: command not found, How to add virtualenv to path) but I cannot seem to find outputs which mirror what I have received.

Is the cached virtualenv holding things up? Or perhaps the matplotlib stuff? Either way, virtualenv doesn't appear to have installed as it ought.

Would it be wise (in any case) to update or install nose, tornado and numpy using pip so that I can progress to activating a virtualenv? Or is something I need to address first before I can get virtuanlenv to start working?

Upvotes: 2

Views: 1862

Answers (1)

Kimio Tanaka
Kimio Tanaka

Reputation: 11

I did the same error, but succeeded with the following procedure.


$ brew install python3

$ pip3 install --upgrade virtualenv

Collecting virtualenv

Cache entry deserialization failed, entry ignored

Cache entry deserialization failed, entry ignored

Downloading virtualenv-15.2.0-py2.py3-none-any.whl (2.6MB)

100% |████████████████████████████████| 2.6MB 226kB/s 

Installing collected packages: virtualenv

Successfully installed virtualenv-15.2.0

Upvotes: 1

Related Questions