- 2

How do I download a library in Python?

Please, tell me how to download the library "requests" and "lxml"?

28th Nov 2021, 8:45 PM
Васьок Тарасенко
Васьок Тарасенко - avatar
3 odpowiedzi
+ 2
In sololearn, you can use os. See line 3 in my example code: Change the last part of the string to the library that you want to install https://code.sololearn.com/cNKl7SPZKX3q/?ref=app
28th Nov 2021, 10:27 PM
Lisa
Lisa - avatar
0
Use a package manager like pip or conda.
28th Nov 2021, 10:24 PM
Simon Sauter
Simon Sauter - avatar
0
Go to cmd and type : pip install lxml (or requests)
28th Nov 2021, 10:35 PM
VCoder
VCoder - avatar