02.03.2020
Posted by 
  1. Python On Mac
  2. Download Spyder Python 2.7 Mac
  3. Download Python 2.7 For Mac

Update: These instructions are over a year old, though they may still work for you. See the page for the most up-to-date instructions. I’ve already on Lion, but it involves a lot of working at the command line, modifying your.bashprofile and dealing with compiler problems. That’s what I’ll call the compile-it-yourself (CIY) method. What I’ll describe below I’ll call the “double click” method. I personally use the method because it allows me to very easily control what’s installed. With Homebrew and pip I can uninstall and upgrade different things at will, or choose to install bleeding-edge versions.

Download python 2.7 for mac

But it’s more hassle than everyone wants and there’s now an easier way using double-click installers. Until recently the was the only way to get everything working on Lion but now the developers of NumPy, SciPy, and matplotlib have all caught up and it’s possible to just download and double-click on a few DMG files to get a basic scientific Python installation working. Once you get to know Python, though, you will undoubtedly want to install some other packages and when that time comes I suggest you use. Note: I’ve provided the names of the most current packages as of March 1, 2012.

By the time you do this the versions may have been updated so the most recent versions may not exactly match the names below. Make sure you get the most recent version that is explicitly for Mac OS 10.6-10.7+. Install Python Go to the and download the package called Python 2.7.2 Mac OS X 64-bit/32-bit x86-64/i386 Installer.

Double-click the downloaded.dmg file to install Python. Install NumPy Go to the and download the package called numpy-1.6.1-py2.7-python.org-macosx10.6.dmg.

Install as usual. Install SciPy Go to the and download the package called scipy-0.10.1-py2.7-python.org-macosx10.6.dmg.

Install as usual. Install matplotlib Go to the and download the package called matplotlib-1.2.0-py2.7-python.org-macosx10.6.dmg. Install as usual. Congratulations, that should do it! If you ever want to upgrade one of these in the future revisit the appropriate download page and get the latest.dmg file. Fire up Python at a terminal and make sure things worked.

The following should work in Python with no errors: import numpy import scipy import matplotlib Enjoy! Erisa says: Hey, I am using a tool (it is a python script not written by me) which requires all the libraries mentioned in this post to be installed in order to generate graphs. I have a Mac 10.6 (snow leopard), and successfully followed your instructions. Now I have installed Python 2.7, NumPy 1.6.2, SciPy 0.11.0b1, and Matplotlib 1.1.0 However, I didn’t succeed to run the script. First error I got was that pylab couldn’t be imported, though from doing “import pylab” from a python shell I could see it was installed. Kb1313 says: I am a neophyte Python user trying to set up NUMPY and SCIPY so I can try TAPPY.

Like Erisa I’m getting an error at the multiarray.so line, although it’s a different error. I have Mac OSX 10.6.8, installed Python 2.7.3, then the NUMPY and SCIPY versions as above. When I run import nimby within python, I get the following: import numpy Traceback (most recent call last): File “”, line 1, in deleted a few lines here File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/init.py”, line 5, in import multiarray ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so, 2): no suitable image found.

Download Python 2.7 For Mac

Python On Mac

Did find: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so: no matching architecture in universal wrapper I don’t understand the error, as the filenames it was looking for and did find look the same. When I open up preferences within the Python Launcher that was installed, there seems to be something related to the fix above: in settings for Python Script, the line for interpreter reads “/usr/local/bin/pythonw” and there is no check at a box to allow override with #! If I change either of those, will it help? (And what does the w at the end of python mean?) Many thanks for any help you can give me! Says: I think this means that the installed numpy does not match the installed Python. You must take some care when downloading the installers so that they match the Python you installed and your OS version.

For example, at the NumPy 1.6.2 download page there is an installer for Python 2.7 and Mac OS 10.6 that is probably your best bet (see ). Do you recall which NumPy installer you downloaded? The same advice goes for choosing the SciPy and matplotlib installers as well. I’m not sure you need to worry about anything in the Python Launcher.

Download Spyder Python 2.7 Mac

I’ve never even opened that. Keir13 says: Many thanks for such a quick response! Your opening comment makes overall sense, but I did use the NumPy installer for Python 2.7 and OSX10.6 that you mention. In fact, I initially tried the “latest” installer at the top of the sourceforge page without noticing it is for 2.6, but when it wouldn’t install at all I realized the issue and went to proper installer. However, your initial recommendation at the top of this thread was for installing Python 2.7.2. Maybe if I try deleting 2.7.3 and installing the slightly older version, that will solve the incompatibility issue. Thanks again.

Dylan says: Hi there, I was wondering if you could assist me with the following problem? I’m completely new to Python and I might need some ‘hand holding’ to guide me through the installation process.

Download Python 2.7 For Mac

I’m operating on Mac (Snow Leopard) and I have installed Python and its libraries as per suggested above. Frenchie says: Hello, I am using SciTE to write my code in Python. I’m a student,so numpy and matplotlib are going to be very helpful. I have installed all the packages mentionned above. But when writting: “import numpy” a message appears in the output. “shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted” I don’t understand.

Does this mean I can’t have numpy synchronised with SciTE??? In my school, we are using SciTE so I don’t want to go for another software. Ryanhuges4500 says: Hi, I’ve installed Numpy, Matplotlib and scipy. Every time I try importing pylab I get the following error: Python 2.7.4 (default, Sep 26 2013, 03:20:26) GCC 4.7.3 on linux2 Type “help”, “copyright”, “credits” or “license” for more information.