Do i need Virtual environment for lxml and beautiful soup in linux?
That's a matter of personal preference, however in most cases the benefits of installing libraries in a virtual environment far outweigh the costs.
Setting up virtualenv (and perhaps virtualenvwrapper), creating an environment for your project, and activating it will take 2-10 minutes (depending on your familiarity with the system) before you can start work on your project itself, but it may save you a lot of hassle further down the line. I would recommend that you do so.
I am doing a data scraping project in python.For that i need to use beautiful soup and lxml.Should i install them globally or in a virtual environment?