Módulo de "solicitudes" de Python 2.7 en Fedora 19
Frecuentes
Visto 7,472 veces
0
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.
1 Respuestas
5
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 python python-2.7 fedora or haz tu propia pregunta.
Are you sure u have done proper installation and set it in you PYTHONPATH ? - Vivek
@Vivek: There's no reason he should need to set PYTHONPATH if he's done proper installation. - abarnert