Yum on EC2 Linux Causes ModuleNotFoundError: No module named ‘dnf’ [Fixed]

I just used Yum to install Git on my Linux AWS EC2 instance using the following commands: πŸ‘Ό Error But when running these commands in my shell, I got the error messages ModuleNotFoundError: No module named ‘dnf’: 😑 [ec2-user@ip-172-31-19-40 ~]$ sudo yum update -y Traceback (most recent call last): File “/usr/bin/yum”, line 61, in <module> … Read more

How to Use Python 3.X (3.9, 3.10, or 3.11) as Default for “python3” in Linux?

Ready to embrace the power of Python 3.11 as your default Python3 version? 🐍 Let’s make it happen! Just follow these simple steps: 1️⃣ First, let’s check your current default Python version. Open your terminal and run the following command: python3 –version In my AWS instance, the command python3 pointed to my installed Python version … Read more

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 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 Install the Solidity Compiler via Docker on Ubuntu?

In this article, we continue building on our previous topic, the Solidity compiler installation: 🌍 Previous Topic: Solidity Compiler Installation (NPM) The previous article was focused on an installation via npm, and in this article, we’ll go through the installation and use of the Solidity compiler via Docker. 🌍 Related Tutorials: Install Solidity Compiler via … Read more