

The first time I was worried it had gotten stuck at ‘Building p圓6-scipy’ but a quick look to Activity Monitor showed me that it was still doing something in the background (and it eventually finished without a problem). This may take quite a while (about two hours on my iMac G4 1.25Ghz). This will install scipy and its dependencies. The process for scipy is the same: sudo port install p圓6-scipy Note that you will be asked to confirm the installation of this dependencies by pressing ‘Y’.

This will install numpy and its dependencies (such as cython). To install numpy, open Terminal and type: sudo port install p圓6-numpy Let’s install numpy and scipy next: Install numpy: Note that you could also set it as the default python (replacing “python3” with “python” above), but it’s not recommended since the Mac OS X already uses python internally and messing probably won’t end well. After installing Python 3.6, you can set it as the default python3 by typing: sudo port select -set python3 python36 Other versions can be installed changing the last two digits (Python 2.7 would be python27, for example). To install Python 3.6 (last version as of now), open Terminal and type (you might be prompted for your password): sudo port install python36Īs you see installation through MacPorts is quite painless. Download and install it, and we can start installing Python! Install Python 3.6: Install Mac Ports:Īfter you have installed Xcode, head to to install MacPorts, a packet manager for Mac (similar to Homebrew). We’ll need Xcode 3.1.4 for the additional command line tools and the gcc-4.2 compiler. Go to /downloads/ and search for Xcode 3.1.4 Developer Tools. Bear in mind that I’m no expert and that the steps shown here worked for me and there’s no guarantee that they’ll work for you.Īmazingly, you can still download Xcode for Mac OS X 10.5.8 through Apple’s own website, needing only a free developer account.
#MACPORTS INSTALL PYTHON 3.6 HOW TO#
How to get Python 3.6 running in Mac OS X 10.5.8 Leopard PowerPC, with most packages (numpy, scipy, matplotlib).
