-1

I have tried many solutions on SO and other sites but I am still unable to use the command virtualenv.

What is the appropriate way to install the same on mac?

phd
  • 82,685
  • 13
  • 120
  • 165
aviral sanjay
  • 953
  • 2
  • 14
  • 31

1 Answers1

3

First simple DO

$ pip install virtualenv

If you have a project in a directory called my-project you can set up virtualenv for that project by running:

$ cd my-project/
$ virtualenv venv

Now Active the environment

$ source venv/bin/activate
Antu
  • 2,197
  • 3
  • 25
  • 40