I'm trying something simple. I clone a repository and then I want to create a virtualenv in it:
hg clone ssh://[email protected]/neves/repo site virtualenv site
When I run the command to create a Python virtualenv in an exiting project, a directory named local is created. All the contents of the "site" dir are copied to this local dir. I don't want this behaviour. Am I doing something wrong? How do I create a virtualenv without creating this local dir?
I'm using virtualenv 1.10.1
To create a virtual environment, go to your project's directory and run venv. If you are using Python 2, replace venv with virtualenv in the below commands. The second argument is the location to create the virtual environment. Generally, you can just create this in your project and call it env .
These are almost completely interchangeable, the difference being that virtualenv supports older python versions and has a few more minor unique features, while venv is in the standard library.
Not sure if it is still helpful, but you can do this.
virtualenv .
Install was fine with me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With