3

I'm not experienced in Python, and I need the requests module.

I've tried installing it using pip install requests

The installation went successfully, but when I try to import the module, I get an error like "no module named requests".

Should I add the install location to PYTHONPATH? If yes, how can I find the location where pip installed the files? I don't know about virtualenv, and I am using Ubuntu.

Denilson Sá Maia
  • 47,466
  • 33
  • 109
  • 111
shajin
  • 3,214
  • 5
  • 38
  • 53
  • How do you install pip?, which is his location?`pip --version` – cyraxjoe Jul 21 '11 at 23:08
  • sudo apt-get install python-pip , version -> pip 0.8.2 from /usr/lib/pymodules/python2.7 (python 2.7) [But I am using python3.1 console!!] – shajin Jul 21 '11 at 23:11
  • @cyraxjoe When I tried in Python2.7 console, Its working fine.But not in python3.1. – shajin Jul 21 '11 at 23:13

1 Answers1

2

You should install pip for python3 first How to install pip with Python 3? then with the pip-3.X install the required module.

Community
  • 1
  • 1
cyraxjoe
  • 5,661
  • 3
  • 28
  • 42