Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 599
whynot Avatar asked Dec 28 '25 19:12

whynot


1 Answers

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

like image 131
Marco Breemhaar Avatar answered Dec 30 '25 08:12

Marco Breemhaar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!