Python : ImportError: No module named requests
<p>I am new to PyDev and Python and trying to run a python program on LiClipse ( version: 2.5.4....) on Windows 7 and seeing this error. This program is importing requests.</p>

<p>I am using python 2.7</p>

<p>Did some research on this error and according to the information:</p>

<pre><code>For Windows without PowerShell 3 or for installation without a command-line, download ez_setup.py using your preferred web browser or other technique and “run” that file.
</code></pre>

<p>from : 
    <a href="https://pypi.python.org/pypi/setuptools" rel="nofollow">https://pypi.python.org/pypi/setuptools</a></p>

<p>I ran and installed as :</p>

<pre><code>c:\opts\Python27&gt;python.exe ez_setup.py
</code></pre>

<p>Looks like it's been installed as last few lines are :</p>

<pre><code>removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing setuptools-21.0.0-py2.7.egg
Copying setuptools-21.0.0-py2.7.egg to c:\opts\python27\lib\site-packages
Adding setuptools 21.0.0 to easy-install.pth file
Installing easy_install-script.py script to c:\opts\Python27\Scripts
Installing easy_install.exe script to c:\opts\Python27\Scripts
Installing easy_install-2.7-script.py script to c:\opts\Python27\Scripts
Installing easy_install-2.7.exe script to c:\opts\Python27\Scripts

Installed c:\opts\python27\lib\site-packages\setuptools-21.0.0-py2.7.egg
Processing dependencies for setuptools==21.0.0
Finished processing dependencies for setuptools==21.0.0
</code></pre>

<p>Restarted Liclipse but the problem did not go away. Any help?</p>

<p>Part of the code:</p>

<pre><code>#!/usr/bin/python
# -*- coding: utf-8 -*-

import sys, requests, json, argparse, unittest, hmac, base64, urllib, urlparse, hashlib

class ClassificationCategory:

........

def post(self, endpoint, payload = None, params = None, headers = None, files = None):
    if payload is not None:
        data = payload if isinstance(payload, basestring) else json.dumps(payload)
    else:
        data = None
    self.res = requests.Session().send(self.prepare_request(endpoint, method = 'POST', params = params, data = data, files = files, headers = self.prepare_headers(headers)), verify = False)
    return self

instance=ClassificationCategory()
instance.post(......)
</code></pre>