Python dependencies - how to download/install [duplicate]









up vote
-2
down vote

favorite













This question already has an answer here:



  • How do I install Python libraries?

    10 answers



I am new to Python and today I received a Python 2 script and would like to run it. Never worked with Python, but the code looks straight forward. The issue is, that right at the beginning there is:



import requests, sys, os, re
import unicodecsv as csv
from lxml import html
from bs4 import UnicodeDammit
from lxml import etree


And I'm not sure how to install these dependencies. I googled around and figured that some 'requirements.txt' file would help, but I have not received it.



So how or whats the best way to install these dependencies please?










share|improve this question















marked as duplicate by jpp python
Users with the  python badge can single-handedly close python questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Nov 11 at 17:33


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1




    pip install requests for "requests" library
    – raj
    Nov 10 at 17:10










  • pip install beautifulsoup4 for "bs4". pip install lxml for "lxml". pip install unicodecsv for "unicodescv"
    – raj
    Nov 10 at 17:15














up vote
-2
down vote

favorite













This question already has an answer here:



  • How do I install Python libraries?

    10 answers



I am new to Python and today I received a Python 2 script and would like to run it. Never worked with Python, but the code looks straight forward. The issue is, that right at the beginning there is:



import requests, sys, os, re
import unicodecsv as csv
from lxml import html
from bs4 import UnicodeDammit
from lxml import etree


And I'm not sure how to install these dependencies. I googled around and figured that some 'requirements.txt' file would help, but I have not received it.



So how or whats the best way to install these dependencies please?










share|improve this question















marked as duplicate by jpp python
Users with the  python badge can single-handedly close python questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Nov 11 at 17:33


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1




    pip install requests for "requests" library
    – raj
    Nov 10 at 17:10










  • pip install beautifulsoup4 for "bs4". pip install lxml for "lxml". pip install unicodecsv for "unicodescv"
    – raj
    Nov 10 at 17:15












up vote
-2
down vote

favorite









up vote
-2
down vote

favorite












This question already has an answer here:



  • How do I install Python libraries?

    10 answers



I am new to Python and today I received a Python 2 script and would like to run it. Never worked with Python, but the code looks straight forward. The issue is, that right at the beginning there is:



import requests, sys, os, re
import unicodecsv as csv
from lxml import html
from bs4 import UnicodeDammit
from lxml import etree


And I'm not sure how to install these dependencies. I googled around and figured that some 'requirements.txt' file would help, but I have not received it.



So how or whats the best way to install these dependencies please?










share|improve this question
















This question already has an answer here:



  • How do I install Python libraries?

    10 answers



I am new to Python and today I received a Python 2 script and would like to run it. Never worked with Python, but the code looks straight forward. The issue is, that right at the beginning there is:



import requests, sys, os, re
import unicodecsv as csv
from lxml import html
from bs4 import UnicodeDammit
from lxml import etree


And I'm not sure how to install these dependencies. I googled around and figured that some 'requirements.txt' file would help, but I have not received it.



So how or whats the best way to install these dependencies please?





This question already has an answer here:



  • How do I install Python libraries?

    10 answers







python dependencies






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 10 at 19:48









raj

574318




574318










asked Nov 10 at 17:07









Oliver Goossens

98131223




98131223




marked as duplicate by jpp python
Users with the  python badge can single-handedly close python questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Nov 11 at 17:33


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by jpp python
Users with the  python badge can single-handedly close python questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Nov 11 at 17:33


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









  • 1




    pip install requests for "requests" library
    – raj
    Nov 10 at 17:10










  • pip install beautifulsoup4 for "bs4". pip install lxml for "lxml". pip install unicodecsv for "unicodescv"
    – raj
    Nov 10 at 17:15












  • 1




    pip install requests for "requests" library
    – raj
    Nov 10 at 17:10










  • pip install beautifulsoup4 for "bs4". pip install lxml for "lxml". pip install unicodecsv for "unicodescv"
    – raj
    Nov 10 at 17:15







1




1




pip install requests for "requests" library
– raj
Nov 10 at 17:10




pip install requests for "requests" library
– raj
Nov 10 at 17:10












pip install beautifulsoup4 for "bs4". pip install lxml for "lxml". pip install unicodecsv for "unicodescv"
– raj
Nov 10 at 17:15




pip install beautifulsoup4 for "bs4". pip install lxml for "lxml". pip install unicodecsv for "unicodescv"
– raj
Nov 10 at 17:15












1 Answer
1






active

oldest

votes

















up vote
0
down vote













Thank you for the comments.



Looks like pip is the package manager so to speak for Python and the packages you stated worked.



pip install requests
pip install beautifulsoup4
pip install lxml
pip install unicodecsv


Thank you again!






share|improve this answer



























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Thank you for the comments.



    Looks like pip is the package manager so to speak for Python and the packages you stated worked.



    pip install requests
    pip install beautifulsoup4
    pip install lxml
    pip install unicodecsv


    Thank you again!






    share|improve this answer
























      up vote
      0
      down vote













      Thank you for the comments.



      Looks like pip is the package manager so to speak for Python and the packages you stated worked.



      pip install requests
      pip install beautifulsoup4
      pip install lxml
      pip install unicodecsv


      Thank you again!






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        Thank you for the comments.



        Looks like pip is the package manager so to speak for Python and the packages you stated worked.



        pip install requests
        pip install beautifulsoup4
        pip install lxml
        pip install unicodecsv


        Thank you again!






        share|improve this answer












        Thank you for the comments.



        Looks like pip is the package manager so to speak for Python and the packages you stated worked.



        pip install requests
        pip install beautifulsoup4
        pip install lxml
        pip install unicodecsv


        Thank you again!







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 10 at 22:32









        Oliver Goossens

        98131223




        98131223













            Popular posts from this blog

            Top Tejano songwriter Luis Silva dead of heart attack at 64

            ReactJS Fetched API data displays live - need Data displayed static

            政党