1

I have Python Script where "requests" module has been imported. I am trying to execute this script in Linux terminal and getting error like

 Traceback (most recent call last): File "./test3.py", line 5, in <module> import requests ImportError: No module named requests 

Then, I tried to install the "requests" module by running the below command on Linux terminal and getting some information as below

pip install requests Requirement already satisfied: requests in /usr/local/lib/python2.7/site-packages 

So, Please suggest me to resolve this issue.

Thanks,

5
  • it sounds silly, but try uninstalling it and reinstalling it Commented Apr 27, 2017 at 17:31
  • Hi wpercy, Thanks for the reply. But, I don't have permission to uninstall anything.. This is related to Production host.. Commented Apr 27, 2017 at 17:34
  • So you can install things but can't uninstall? Why not? Commented Apr 27, 2017 at 17:34
  • the error is stating no module named requests. Make sure you know the correct name of the module. Case matters. where-should-i-put-my-own-python-module Commented Apr 27, 2017 at 17:41
  • 2
    Maybe you have several versions of python installed. Try to check this link: stackoverflow.com/questions/25607837/… Commented Apr 27, 2017 at 18:15

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.