Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 1.36 KB

installation.md

File metadata and controls

57 lines (42 loc) · 1.36 KB

Instructions for installing Python3.7

First, check your Python version

  • If Python is already available on your system it is likely to be Python 2. You can check your version as:
python --version
  • If both Python 2 and Python 3 are already installed, you might need to explicitly call python3 instead of python. Then, to check your Python 3 version:
python3 --version

If Python 3.7 is already installed on your system, you can skip these instructions.


Installing Python 3.7 on OSX

On OSX, Python3.7 can be installed with homebrew, as:

brew unlink python
brew install python

Installing Python 3.7 from the source

If not available from your local package manager, Python 3.7 can be installed from the source.

  1. Get the source distribution from www.python.org and extract it locally. E.g. as:
wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz
tar xzf Python-3.7.2.tgz
  1. Configure, build and install (requires .red[root] privileges), E.g. as:
cd Python-3.7.2
./configure
sudo make altinstall

You'll get a warning that your Python build is not optimized. You can ignore it for the present purpose.