使用 python3 环境开发。

  • 安装python3 环境

$ brew install python3


/usr/local/Cellar/python3/3.4.3/bin/python3

==> Pouring python3-3.4.3.yosemite.bottle.10.tar.gz
==> Caveats
Pip and setuptools have been installed. To update them
pip3 install –upgrade pip setuptools

You can install Python packages with
pip3 install

They will install into the site-package directory
/usr/local/lib/python3.4/site-packages

See: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Homebrew-and-Python.md

.app bundles were installed.
Run brew linkapps python3 to symlink these to /Applications.
==> /usr/local/Cellar/python3/3.4.3/bin/python3 -s setup.py –no-user-cfg instal
==> /usr/local/Cellar/python3/3.4.3/bin/python3 -s setup.py –no-user-cfg instal
==> Summary
�� /usr/local/Cellar/python3/3.4.3: 4643 files, 81M

  • 基于 python3 建立virtualenv

$ virtualenv -p /usr/local/Cellar/python3/3.4.3/bin/python3 py3env

扩展阅读:

使用virtualenv在ubuntu上搭建python 3开发环境
http://my.oschina.net/xiaoiaozi/blog/129769

你可能感兴趣的:(python)