Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Installing Python 3

Alan Yorinks edited this page Feb 6, 2020 · 1 revision

You must use Python 3 to run pymata_aio. It is suggested that you use version 3.7 or greater.

Windows and Mac Users

To install Python 3 go to the Python home page, and download the latest version of Python 3 for your operating system.

If you have Python 2.7 installed, you do not need to remove it.

During the installation process, if there is a checkbox to add Python 3.X to your path, make sure it is checked before proceeding with the installation.

Linux Users:

To verify that you currently have the correct version of Python 3 installed for your operating system, open a terminal window and type:

python3 -V

This will return the version of Python 3 installed on your system.

For Linux, if you need to install Python 3, here are the build and installation instructions

  1. sudo apt-get update
  2. sudo apt-get upgrade
  3. sudo apt-get dist-upgrade
  4. sudo apt-get install build-essential python-dev python-setuptools python-pip python-smbus
  5. sudo apt-get install build-essential libncursesw5-dev libgdbm-dev libc6-dev
  6. sudo apt-get install zlib1g-dev libsqlite3-dev tk-dev
  7. sudo apt-get install libssl-dev openssl
  8. cd ~
  9. mkdir build
  10. cd build
  11. wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz (adjust for the latest version of Python 3)
  12. tar -zxvf Python-3.6.5.tgz
  13. cd Python-3.6.5
  14. ./configure
  15. make
  16. sudo make install

After Installation Verify The Python Version

Windows Users: You must have Python 3.7 or greater installed. After installation, open a command window and type: python -V. You should see Python 3.8.2 or something similar.

Linux Users: After installation, open a command window and type: python3 -V. You should see Python 3.5.2 or something similar.