How to Install Peewee Python Library on Windows?
Peewee is an open-source library for object-relational mapping using python. Object-relational mapping also known as ORM is used to transfer the stored data in the relational database. Peewee supports MySQL database through its database class, Cockroach database for providing logic and running a function inside a transaction and it also supports PostgreSQL through its database class. In this article, we will see an easy way to install the Peewee library on windows.
Pre Requisites
Here are some prerequisites to install the Peewee module on Windows:
- Python
- PIP or Conda (depending upon user preference)
Installing Peewee on Windows
Method 1: Installing Peewee using PIP
Step 1: Users who wants to use pip for installing the peewee module on Windows in the command prompt have to use the command,
pip install peewee
Once the installation is successfully completed a user gets a message the same as shown picture.
Step 2: For verifying that peewee was successfully installed on the system with the pip, run a command in the command window.
pip show peewee
Output:
Method 2: Installing Peewee using Conda
Step 1: Users which use conda to install the peewee module on windows are following these commands in the command window:
conda install -c conda-forge peewee
Enter Y when prompted for yes. Once the installation is completed, the user gets the message as shown in the picture.
Step 2: For verifying that peewee was successfully installed on the system with conda, run a command in the command window.
conda list peewee
Output: