Módulo de "solicitudes" de Python 2.7 en Fedora 19

When I'm trying to import requests módulo:

import requests

Estoy recibiendo el siguiente error:

import requests
ImportError: No module named requests

How can I fix that on Fedora 19?

Gracias.

preguntado el 26 de septiembre de 13 a las 20:09

Are you sure u have done proper installation and set it in you PYTHONPATH ? -

@Vivek: There's no reason he should need to set PYTHONPATH if he's done proper installation. -

1 Respuestas

pip install requests or yum install python-requests

Edit:

You can install it using fedora package manager (yum). Or using pip (python package index) docs (https://pypi.python.org/pypi/pip). If you want to use pip then you must install pip first, yum install python-pip

I use pip, yum or apt packages are generally older than the ones on pip.

Respondido el 26 de Septiembre de 13 a las 20:09

I'm not sure why this was downvoted. From the OP's brief description, it sounds like the most likely problem is that he just hasn't installed it, and this is the solution. It might benefit from a little explanation (e.g., why you'd want to do one vs. the other), and I think Fedora 19 doesn't come with pip preinstalled so you'd need yum install python-pip before doing the first version. But imperfect doesn't mean bad. - abarnert

abarnert you are right, I have just added more information. Thanks - mberacochea

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.