Is there a way to start a virtualenv with zero package dependency? Whenever I create a new virtualenv, I get a whole list of pip dependencies from global environment. I would like to start a project in a clean state and install dependencies as needed.
Asked
Active
Viewed 2,751 times
2
-
1http://stackoverflow.com/questions/1382925/virtualenv-no-site-packages-and-pip-still-finding-global-packages – DhruvPathak Jul 12 '15 at 18:28
-
1unless you use [system site packages](https://virtualenv.pypa.io/en/latest/userguide.html#the-system-site-packages-option) it wont add other global dependencies – Ja8zyjits Jul 12 '15 at 18:29
1 Answers
2
In the latest versions virtualenv ensures that the project is started with a clean slate.
For older versions. Use this command
virtualenv [name] --no-site-packages
--no-site-packages
flag will ensure that the project is started with a clean slate.
This flag is now deprecated.

Sartaj Singh
- 306
- 1
- 7