~]# pip3.6 install requests WARNING: Running pip install with root privileges is generally not a good idea. If you don't have this pip version installed then you can install it by using yum install python3-pip -y command. Since here we are using python3 so we need to use pip3.6 to install modules for this version. Here you only need to make sure that you have pip3.6 tool available as per the python version that you are going to use. You can use simply use pip3.6 install requests command to install requests module in your Server. Other way that you can use to install requests module is through pip3.6 tool. Installing collected packages: certifi, idna, chardet, urllib3, requests ~]# python3 -m pip install requests WARNING: Running pip install with root privileges is generally not a good idea. Now if you run the python program again you won't see "ModuleNotFoundError: No module named 'requests'" error. If you don't have python3 installed in your Server then you can install it by using yum install python3 -y command.
Here you can notice that for this command to work you need to have python3 installed in your Server. If it is not installed then you can easily install by using python3 -m pip install requests command as shown below. If you are getting "ModuleNotFoundError: No module named 'requests'" error then it means either requests module is not installed or if it is installed then python is not able to find it.
#PYTHON DOWNLOAD REQUESTS HOW TO#
Solved: ModuleNotFoundError: No module named 'requests' in Python 3Īlso Read: How to Properly Search PHP Modules using YUM tool in Linux(RHEL/CentOS 7/8) Both ways are explained below with examples. You can install this or any other python modules by using 2 different ways. In this article, I will show you how to install Python requests module if it is currently missing in your server. Are you trying to run python program and getting "ModuleNotFoundError: No module named 'requests" error ? Do you want to Know how to solve "ModuleNotFoundError: No module named 'requests'" error ? Do you want to know how to install a Python module on RHEL/CentOS Based Servers ? If you are looking answer for all these queries then you have reached the correct place.