Open In App

How to Install Python-Peewee on Ubuntu?

Last Updated : 31 Jan, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Peewee is a small and easy-to-use ORM. It has some, but expressive concepts that make it easy to use and understand. It is supported by Python 2.7+ and 3.4+. It supports SQLite, MySQL, PostgreSQL, and cockroach DB. It also supports various types of extensions modules that come under the playhouse namespace like schema migrations, SQLlite extensions, Postgresql extensions, etc. In this article, we will be looking at the stepwise procedure to install the Peewee for Python in Linux. 

Installing Peewee for Python on Linux

Follow the below steps to install Python Peewee in Linux:

Step 1: Check if Python is installed or not on your system. Here, we run the below command in the terminal of the Linux to check if the Python is already installed in the system or not. In case Python is already installed on your system then the output will be the current version of Python and if it is not installed it will throw an error. For installing python in your system refer to How to Install Python.

python3.9 –version

Checking-if-Python-is-installed-or-not

Step 2: This step is to update the Linux used by the user to get the latest version so that it can make the process much faster and the system updates will make the installing easily without facing any issue.

sudo apt-get update

Updating-Linux

Step 3: Install the pip. Here, first, we install pip in Python using the following command. It is a package management system that is used to install and manage software packages or libraries that are written in Python.

sudo apt-get install python-pip

Install-the-pip

Step 4: Install the Peewee. Here, it is the final step to install the Peewee in Python just the user needs to type the below-mentioned commands in the working Linux terminal and the Peewee will be successfully installed in the system.

sudo pip install peewee

Install-the-Peewee

Verifying Python-peewee installation on Linux

For ensuring the installation of peewee on our system, we can use the following import command in the Python terminal. If there is an error while importing the module then it means it is not installed properly.

import peewee

Verifying-Python-peewee-installation


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads