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
CodePudding user response:
Looks like virtualenv
is not installed as a Python package. A simple pip install virtualenv
should do the trick.
CodePudding user response:
Add source
Example
source venv/bin/activate