Before we start writing the code, let's make sure that we have our host machine up to date on all its software libraries:
- First, make sure that you are using the latest version of Python 3. For me, that is Python 3.7, but Python 3.x should work without any issues.
- Next, make sure that your pip installation is up to date by opening a Terminal or command console and typing the following:
python -m pip install –upgrade pip
- Follow the prompts to update pip to the latest version. It may take a few minutes to upgrade, depending on your internet connection and how old your pip is.
- Once the pip update is complete, we will need to install pySerial and Matplotlib. To install pySerial, use the updated pip by typing ...