LoginSignup
7
7

More than 5 years have passed since last update.

MarvericksにPython開発環境をセットアップする

Last updated at Posted at 2014-05-17

検証環境

OSX
10.9.2

Python
2.7.5

セットアップ

インストール pip

$ sudo easy_install pip

インストール virtualenv

$ sudo pip install virtualenv

インストール virtualenvwrapper

$ sudo pip install virtualenvwrapper

初期設定

$ vi ~/.bash_profile
source /usr/local/bin/virtualenvwrapper.sh

保存後、再度ターミナルを開く

仮想環境を作成する

$ mkvirtualenv test

仮想環境に変わるので、あとは好きにパッケージをインストールする。

(test)$ pip install xxxx 

再度ログインするとき

$ workon
test

仮想環境に切り替える

$ workon test
7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7