Python ‘termios’ Module Not Found (Easy Fix)

The termios module is a Python built-in module on Unix-like systems such as Linux, Ubuntu, and macOS. See this part of the documentation that shows how it’s only focused on Unix systems: How to Fix any Error: No Module Named ‘termios’? Because termios is part of the Python standard library on Unix operating systems, you … Read more

How to Update Python?

Python gets updated roughly once per year with a major update and security fixes. So, Python’s update cycle is 12 months. The end-of-life, i.e., the period during which one Python version is supported, is normally set to 5 years. The following graphic shows a great screenshot of supported and unsupported Python versions at the time … Read more

How to Check Python Version in Colab?

To check your Python version in Google’s Colab, type !python ‐‐version using the exclamation mark ! operator in your Jupyter Notebook cell and click on the “Run” icon. After a couple of seconds an output like Python 3.9 will appear, depending on the version you’ve installed. In Jupyter notebooks, the exclamation mark ! executes commands … Read more

How to Change File Permissions in Python?

Problem Formulation and Solution Overview When a new file or folder is created, it comes with its own set of default permissions. From time to time, you will need to adjust these permissions. To follow this article, download the finxter.csv file and move this file to the current working directory. What are File Permissions? File … Read more

How to Modify Images using Pillow

Problem Formulation and Solution Overview This article will show you how to use the Pillow Library in Python to modify and manipulate images. To make it more interesting, we have the following running scenario: Creative Prints is an online store accepting images from Photographers wishing to sell their art. The Manager would like you to … Read more