whynot
whynot

Reputation: 95

ModuleNotFoundError: No module named 'virtualenv'

when I try to run virtualenv in command line in mac, it says

from virtualenv.__main__ import run_with_catch
ModuleNotFoundError: No module named 'virtualenv'

but I am able to locate virtualenv with which virtualenv

/usr/local/bin/virtualenv

Upvotes: 3

Views: 5433

Answers (2)

assaabriiii
assaabriiii

Reputation: 47

If you are using brew, just do:

sudo brew upgrade

Upvotes: -1

Marco Breemhaar
Marco Breemhaar

Reputation: 188

Looks like virtualenv is not installed as a Python package. A simple pip install virtualenv should do the trick.

Upvotes: 1

Related Questions