How to install python virtualenv: Difference between revisions

From DISI
Jump to navigation Jump to search
(Created page with "1. install the package virtualenv pip install virtualenv 2. create a virtualenv virtualenv <name_of_your_virtualenv> 3. activate the created virtualenv source path_to_you...")
 
(No difference)

Latest revision as of 22:25, 25 January 2017

1. install the package virtualenv

pip install virtualenv

2. create a virtualenv

virtualenv <name_of_your_virtualenv>

3. activate the created virtualenv

source path_to_your_virtualenv/bin/activate

4. “freeze” the current state of the environment packages of the other virtual_env:

 pip freeze > requirements.txt

5. install the packages in your new virtualenv:

 pip install -r requirements.txt