http://www.python-forum.org/pythonforum/viewtopic.php?f=3&p=54429
/etc/profile -- applies to all users for all shells
~/.profile -- applies to just your account for all shells
~/.bash_profile -- applies to just your account for just the bash shell
在Mac OS X 10.6(Snow Leopard)中设置PATH 環境變數
sudo vim /etc/paths 將路徑添加到里面去
Python
Link1
Link2
$ which python
/usr/bin/python
If this is part of ~/.bash_profile, this will append the Python path on each startup.
PATH="/Library/Frameworks/Python.framework/Versions/3.1/bin:${PATH}"
export PATH
This will append the Python directory to the path.
ps. Mac Port中第三方软件下载包存放的默认路径是:/opt/local/var/macports/distfiles/
沒有留言:
張貼留言