Difference between revisions of "Installation mac mavericks os x"

From relax wiki
Jump to navigation Jump to search
Line 22: Line 22:
  
 
== Testing the Python installation ==
 
== Testing the Python installation ==
 +
After installation, restart your terminal, and check path to python.
 +
<source lang="bash">
 +
$ which python
 +
/Library/Frameworks/Python.framework/Versions/Current/bin/python
 +
</source>
  
 
Before installing relax, it is best to be sure that the Python modules are functional by trying to import them and print the version of them:
 
Before installing relax, it is best to be sure that the Python modules are functional by trying to import them and print the version of them:
 
<source lang="python">
 
<source lang="python">
 
$ python
 
$ python
Python 2.6.6 (r266:84292, Oct 12 2012, 14:23:48)
+
Enthought Python Distribution -- www.enthought.com
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
+
Version: 7.3-2 (32-bit)
 +
 
 +
Python 2.7.3 |EPD 7.3-2 (32-bit)| (default, Apr 12 2012, 11:28:34)  
 +
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
 +
Type "credits", "demo" or "enthought" for more information.
  
 
>>> import wx
 
>>> import wx
 
>>> wx.__version__; wx.__file__
 
>>> wx.__version__; wx.__file__
'...'
 
 
>>> import bmrblib
 
>>> bmrblib.__version__; bmrblib.__file__
 
'...'
 
 
>>> import minfx
 
>>> minfx.__version__; minfx.__file__
 
 
'...'
 
'...'
 
</source>
 
</source>

Revision as of 18:13, 7 December 2013

Installation

Download a python distribution which include wxPython

At the time for this post, (Dec 2013), the installation of wxPython2.9-osx-cocoa-py2.7 made hickups and crashes.
This is reported here and here.

The problem is based on the wxPython version and 32/64 bit issues.
It is therefore strongly recommended to install the 32 bit python package distribution.

If one installs the "epd" enthought python distribution, this will include a working wxPython.
SIgn-up with preferably a university email to get the Academic License, and you can then download for free https://www.enthought.com/repo/epd/installers/

Specifically download and install:
epd-7.x-x-macosx-i386.dmg

Special note about 64-bit Mac OSX

The macosx-x86_64 installer does not include wxPython, which a lot of ETS relies on. Even though ETS supports the use of PySide as a backend, things are much less stable under Qt. Therefore, if you want to use ETS, we recommned using the 32-bit EPD on Mac OSX.

Testing the Python installation

After installation, restart your terminal, and check path to python.

$ which python
/Library/Frameworks/Python.framework/Versions/Current/bin/python

Before installing relax, it is best to be sure that the Python modules are functional by trying to import them and print the version of them:

$ python
Enthought Python Distribution -- www.enthought.com
Version: 7.3-2 (32-bit)

Python 2.7.3 |EPD 7.3-2 (32-bit)| (default, Apr 12 2012, 11:28:34) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "credits", "demo" or "enthought" for more information.

>>> import wx
>>> wx.__version__; wx.__file__
'...'

Install brew as 'linux' package manager

You can read about brew here.
In short, it is like a package manager for mac, where you will be able to get linux programs to mac.

 ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"

See also