Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create virtualenv in existing directory without creating a "local" directory

Tags:

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

like image 787
neves Avatar asked Oct 04 '13 16:10

neves


People also ask

How do I create a virtual environment?

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 .

Is VENV the same as virtualenv?

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.


1 Answers

Not sure if it is still helpful, but you can do this.

virtualenv . 

Install was fine with me.

like image 170
Andy K Avatar answered Oct 21 '22 21:10

Andy K