Alguien sabe como se puede instalar el módulo requests?? Conseguí descargarlo pero nosé como instalarlo y hacer que funcione. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Alguien sabe como se puede instalar el módulo requests?? Conseguí descargarlo pero nosé como instalarlo y hacer que funcione.

Traceback ( most recent call last ) : File "/ storage / emulated/ 0 / qpython /scripts 3 / example . py ", line 4 , in < module > from instabot import InstaBot File "/ storage / emulated/ 0 / qpython /scripts 3 / instabot . py ", line 4 , in < module > import requests ImportError : No module named requests 1 | u 0 _ a 137 @ j3 xnlte : / $ Necesito vuestra ayuda por favor, como podeis ver soy de habla hispana. No me importa en que idioma estea la respuesta. Es Qpython en Androi Muchas gracias!! Un saludo!!

23rd Apr 2017, 1:14 PM
Roberto Alonso
Roberto Alonso - avatar
2 Answers
+ 8
Many third-party Python modules are stored on the Python Package Index (PyPI). The best way to install these is using a program called pip. This comes installed by default with modern distributions of Python. If you don't have it, it is easy to install online. Once you have it, installing libraries from PyPI is easy. Look up the name of the library you want to install, go to the command line (for Windows it will be the Command Prompt), and enter pip install library_name. Once you've done this, import the library and use it in your code. Using pip is the standard way of installing libraries on most operating systems, but some libraries have prebuilt binaries for Windows. These are normal executable files that let you install libraries with a GUI the same way you would install other programs.
23rd Apr 2017, 8:37 PM
Emore Anzolin
Emore Anzolin - avatar
+ 8
This is the description from the sololearn course. If you can find a solution post it.
23rd Apr 2017, 8:39 PM
Emore Anzolin
Emore Anzolin - avatar