These instructions are for Lion but should work on Snow Leopard or Mountain Lion without much trouble.
See the “Install Python” page for the most recent instructions.Ī bit ago a friend and I both had fresh Mac OS X Lion installs so I helped him set up his computers with a scientific Python setup and did mine at the same time. Update: These instructions are over a year old, though they may still work for you.
Use the next set of commands to install NumPy, SciPy and Matplotlib: 1 python -m pip install numpy 2 python -m pip install scipy 3 python -m pip install matplotlibĪfter each of the above commands you should see Successfully installed …. Write python in the command window and press Enter, you should see something like this:Įxit from the Python interpreter by writing quit() and pressing the Enter key. Alternatively, on Windows 10, use the bottom left search box to search for cmd. Press and hold the SHIFT key and right click with your mouse somewhere on your desktop, select Open command window here. Now, to check if Python was correctly installed, open a Command Prompt (or a PowerShell) window.
On the last page of the installer, you should also press the Disable path length limit: Press the Install button and in a few minutes, depending on the speed of your computer, you should be ready. Optionally, you can customize the install location. Finally, on the Advanced Options screen make sure to check Install for all users, Add Python to environment variables and Precompile standard library. On the next screen leave all the optional features checked. Start the installer and select Customize installation.
If you need the 64 bits version of Python, check the Looking for a specific release? section from the above page. The default Python Windows installer is 32 bits and this is what I will use in this article. We’ll start by installing the latest stable version of Python 3, which at the time of this writing is 3.8.