How to create a virtualenv in the terminal of macOS?

Im trying to setup the python and Django environment on my macBook air. Im doing it directly on the terminal of the computer but when I write "virtualenv" so I can create a virtualenv on my machine the system says that "virtualenv" is not a command. What do I do?

In macOS terminal, virtualenv is venv. Use this command below instead:

python3 -m venv <env name>

Thanks a lot mate. Really appreciate your help

Best Regards

Вернуться на верх