OSX
10.9.2
Python
2.7.5
$ sudo easy_install pip
$ sudo pip install virtualenv
$ sudo pip install virtualenvwrapper
$ vi ~/.bash_profile
.bash_login
source /usr/local/bin/virtualenvwrapper.sh
After saving, open the terminal again
$ mkvirtualenv test
It will change to a virtual environment, so you can install the package as you like.
(test)$ pip install xxxx
When logging in again
$ workon
test
Switch to virtual environment
$ workon test
Recommended Posts