The PermissionError error occurs if you're trying to use the Python 2 interpreter instead of Python 3: https://stackoverflow.com/questions/18199477/nameerror-global-name-permissionerror-is-not-defined-python-2-x#18199529. Python 2 has been deprecated 3 years ago and it's no longer supported as of this year. You're probably running an older version of Raspbian where Python 2 is still the default. Either use update-alternatives to point the python and pip executables to python3/pip3 respectively (https://www.scivision.dev/set-python-version-update-alternatives/) or install the application by explicitly using pip3 instead of pip.

Written by

Automation, IoT, programming, machine learning, science, math, economics and more. Powered by Fabio “BlackLight” Manganiello and Sneha Divakar.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store