Warning: This is a very old post so comments may not be valid anymore
I bought this week Wes McKinney’s book Python for Data Analysis and on the first chapter he recommends Enthought Python Distribution as a complete scientific Python environment for following along with his book.
I am one of those users who have never been able to install numpy, scipy, matplotlib, pandas and Co successfully, so the EPD distribution is key for me. Next thing I needed it was to make EPD to play along with virtualenv.
I assume you already have virtualenv and virtualenvwrapper up & running. If not, there are good tutorials here and [here] (http://pythoncentral.org/setting-up-the-python-environment-with-virtualenv/).
Also my setup is for OSX Lion but you should be able to translate to any *nix distro with almost no effort (Not sure about Windows though).
Here are the steps to install Enthought EPDFree in virtualenv:
- Download the EPDFree from [here] (http://www.enthought.com/products/epd_free.php).
- Install EPDFree (double click on the dmg).
- Type python on the Terminal and you should see something like:
- Install pandas using
- Open python and import numpy and pandas. If there are no errors then you are almost ready.
- Your new EPD has been installed as current version but also is located in
/Library/Frameworks/Python.framework/Versions/7.3/bin/python2.7so what we need to do is create a symbolic link to that interpreter in
- I created my symlink as
sudo ln -s /Library/Frameworks/Python.framework/Versions/7.3/bin/python2.7 /usr/bin/epd- (yes my python interpreter is now called epd)
- Now to create a new virtualenv is as simple as
mkvirtualenv epd --python=epd --system-site-packages.
- New packages should be installed in virtualenvs not in the system wide python installation.
Now you have a full scientific python environment up & running.
(Disclaimer: I’ll get a few bucks if you decide to buy the book through my link. Shame on me ;-)