Hello World from OSS Silicon Valley
HowToUse/Virtualenv/15.0
_ Prerequisite
- Python installation (You can refer HowToUse/Python/2.7)
- Pip installation (You can refer HowToUse/Python/2.7/pip/8.1)
_ Install&Setup
- Step.1
- Install virtualenv
$ sudo pip install virtualenv
_ HowToUse
_ Start to work on virtualenv
- 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
- Step.1
- Execute the following command.
$ deactivate
_ Author
S.Yatsuzuka
Last-modified: 2016-11-13 (Sun) 01:39:58 (3022d)