Jack Twain
Jack Twain

Reputation: 6372

Macports for building scientific python environment

I'm learning python for data analysis. I have OS X Mavericks. I would like to install most needed modules to have a scientific python environment. I know that the most common ones are numpy, matplotlib, scipy, but I was wondering if there are others that could also be needed in the future.

So what I need is the following: a macport command with all the ports that can install such stuff for me all at once.

Edit: of course include python and ipython in the command for newcomers as well.

Upvotes: 0

Views: 130

Answers (2)

jolvi
jolvi

Reputation: 4651

I suggest to consider Anaconda as a stand alone Python scientific environment. Installation is very smooth and there is no interaction with other Python installations on the Mac.

Upvotes: 1

oLas
oLas

Reputation: 1241

Further to my comment above, assuming you are not currently heavily dependent on Macports as a package manager, I would point you in the direction of this guide Installing scientific Python on Mac OS X. There are many similar guides with the same general theme:

  1. Use Homebrew to install Python (handles directives and links very easily)
  2. Use pip the built-in Python package manager to install scipy, iPython etc.

I fiddled with MacPorts and self compiling stuff for a while before settling for this and it really is easy. Easy to set up and, more importantly, easy to manage after installation!

I should add that, if you chose to use MacPorts over Homebrew, it is still recommended that you use pip to manage/install your Python packages. So there isn't a single MacPorts command for that.

Upvotes: 0

Related Questions