Hello World from OSS Silicon Valley


HowToUse/Virtualenv/15.0


#contents

*Prerequisite [#r59f577c]
-Python installation (You can refer [[HowToUse/Python/2.7]])
-Pip installation (You can refer [[HowToUse/Python/2.7/pip/8.1]])

*Install&Setup [#vdf18c59]
:Step.1|
Install virtualenv

 $ sudo pip install virtualenv

*HowToUse [#q97864fe]
**Start to work on virtualenv [#a19f35ee]
:Step.1|
Create project space.

 $ mkdir <project name>
 $ cd <project name>

:Step.2|
Setup Virtual environment and activate it.

 $ virtualenv .
 $ source ./bin/activate

Then you can see the prompt is changed, which means work environment has been switched to virtualenv.

:Step.3|
Install python module as you like.

 $ pip install <module>

This is installed under your project, and doesn't affect shared python objects.


**Finish to work on virtualenv [#na32927b]
:Step.1|
Execute the following command.

 $ deactivate


*Author [#x3fafb00]
S.Yatsuzuka