Python Version Backward Compatibility

The Python language does not generally provide backward compatibility. The ability to break inefficiencies and fix wrong design choices are major reasons why Python has remained lean and efficient over the last decades. However, the PEP 387 standard discusses that incompatibility issues should be well thought out. Here’s the basic policy when backward incompatibilities may … Read more

Python Version AWS Lambda

The following table provides an overview of the Python versions supported by AWS SDK for Python: Name Operating system Python 3.9 Amazon Linux 2 Python 3.8 Amazon Linux 2 Python 3.7 Amazon Linux Python 3.6 Amazon Linux Python 2.7 Amazon Linux Boto3 is the Software Development Kit (SDK) for Python from Amazon Web Services (AWS). … Read more

The Complete Python Library Guide

This article is about a topic that is far more important and even more fundamental than any specific Python tutorial: Libraries. What Are the Top 10 Python Libraries? The following list reflects the most important Python libraries based on my experience: Pandas. “Excel for coders”. NumPy. Fundamental to many libraries in the data science and … Read more

How to Check the Python Version at Runtime?

Method 1: sys.version To check your version at runtime in your code, import the sys module and print the sys.version attribute to your Python shell: Method 2: sys.version_info If you need an easy-to-process output for the major, minor, and micro versions, use the sys.version_info attribute. For example, Python version 3.9.5 has major version 3, minor … Read more

How to Install MySQL on PyCharm?

MySQLdb is an interface to an existing MySQL database server for Python. Problem Formulation: Given a PyCharm project. How to install MySQL in your project within a virtual environment or globally? Here’s a solution that always works: Open File > Settings > Project from the PyCharm menu. Select your current project. Click the Python Interpreter … Read more

How to Install NLTK on PyCharm?

NLTK is a Python library for processing natural languages enabling easy access to “text processing libraries for classification, tokenization, stemming, tagging, parsing, and semantic reasoning, wrappers for industrial-strength NLP libraries, and an active discussion forum”. Problem Formulation: Given a PyCharm project. How to install the NLTK library in your project within a virtual environment or … Read more

How to Install Boto3 on PyCharm?

Boto3 allows you to create, configure, and manage AWS services such as EC2 and S3 using an SDK with an object-oriented API. There’s also an SDK for Python. Problem Formulation: Given a PyCharm project. How to install the Boto3 library in your project within a virtual environment or globally? Here’s a solution that always works: … Read more

How to Install Keras on PyCharm?

Keras is a machine learning framework built on TensorFlow to facilitate scaling a machine learning app to large GPU clusters relatively easily. Problem Formulation: Given a PyCharm project. How to install the Keras library in your project within a virtual environment or globally? Here’s a solution that always works: Open File > Settings > Project … Read more