Mac OS Yosimate: how to install it for python3, instead of default python2?
I just installed the graph-tool using brew on mac 10.10.4, but it was installed in default python2, not the python3 that i want.
$ python3
Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 5 2014, 20:42:22)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
from graph_tool.all import *
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named 'graph_tool'
On python (default): no error
$ python
Python 2.7.6 (default, Sep 9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
from graph_tool.all import *
================================ I wonder how I can install graph-tool on python3, instead of the Mac default python2. . OS Version: Mac OS X 10.10.4 graph-tool install method: brew
there are some error in the brew install process:
Python modules have been installed and Homebrew's site-packages is not in your Python sys.path, so you will not be able to import the modules this formula installed. If you plan to develop with these modules, please run: mkdir -p /Users/seanlao/Library/Python/2.7/lib/python/site-packages echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/seanlao/Library/Python/2.7/lib/python/site-packages/homebrew.pth