I am running into some issues with installing python
modules while using python
versus ipython
and I think it has to do with my .profile
and .bash_profile
.
My desired setup is to be able to leverage homebrew
, pip
and easy_install
to install programs and modules, and have them install into the correct location so python
and ipython
point to the same source. Here is the output of which
for various programs:
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
output:
PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
.bash_profile
output:
if [ -f ~/.bashrc ]; then source ~/.bashrc ; fi
export PATH=/usr/local/share/python:$PATH
What changes should I make so that when I install modules or programs, they automatically go into the correct location?