How to Install Python Requests Module on Windows
If you are working with Python and you want to send HTTP requests and receive responses, you will need to use the Python Requests module. In this tutorial, I am going to explain how you can install the Python Requests module on Windows.
Method 1: Using pip
The easiest and recommended way to install the Python Requests module on Windows is to use pip. Here are the steps:
- Open your command prompt or terminal.
- Type the following command:
pip install requests
- Press Enter.
- The Python Requests module should now be installed on your system.
Method 2: Manual Installation
If you prefer to install the Python Requests module manually, here are the steps:
- Go to the Python Requests module's official website.
- Download the latest version of the Python Requests module.
- Extract the downloaded file to a directory of your choice.
- Open your command prompt or terminal.
- Change the directory to the location of the extracted file using the cd command.
cd C:\path\to\extracted\file
- Type the following command to install the Python Requests module:
python setup.py install
- Press Enter.
- The Python Requests module should now be installed on your system.