Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've recently installed Enthought Python Distribution, after which it gave me the message:

As the last step, you should edit your .bashrc or prepend the EPD install path:

/home/j.inglis/epd-7.3-2-rh5-x86_64/bin

Thank you for installing EPD!

I read the answer to editing .bashrc file and did the echo 'export PATH=$PATH:/home/j.inglis/epd-7.3-2-rh5-x86_64/bin' >> ~/.bashrc, then logged out, then back in.

However, typing which python gives me /usr/local/bin/python rather than the desired /home/j.inglis/epd-7.3-2-rh5-x86_64/bin/python

Any help would be greatly appreciated!

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The PATH is read starting at the front. So you need to get rid of the line you just added to your .bashrc file, and replace it with:

export PATH=/home/j.inglis/epd-7.3-2-rh5-x86_64/bin/python:$PATH

And it should work fine.

The other option would be to uninstall the version of python you do not want.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.