【发布时间】:2013-12-11 22:23:44
【问题描述】:
在使用python 与ipython 时,我在安装python 模块时遇到了一些问题,我认为这与我的.profile 和.bash_profile 有关。
我想要的设置是能够利用homebrew、pip 和easy_install 来安装程序和模块,并将它们安装到正确的位置,因此python 和ipython 指向同一个源.以下是各种程序的which 的输出:
mike$ which brew
/usr/local/bin/brew
mike$ which ruby
/usr/bin/ruby
mike$ which python
/usr/local/bin/python
mike$ which ipython
/usr/local/share/python/ipython
.profile 输出:
PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
.bash_profile 输出:
if [ -f ~/.bashrc ]; then source ~/.bashrc ; fi
export PATH=/usr/local/share/python:$PATH
我应该进行哪些更改,以便在我安装模块或程序时,它们会自动进入正确的位置?
【问题讨论】:
-
您的
PATH与模块的安装位置无关 -
为什么这是一个 Ruby 问题?
标签: python pip homebrew .profile