Python Virtual Environment
Python Virtual Environment
• Python3
• The project will have access to the packages inside the environment
• Imagine if you have an application that uses a package version 1.0.1 with a
specific function/method, but the other version let is say 2.3.5 works
completely different. You have two options: change all your code or avoid any
upgrade to the new version. But if you have a version 1.0.1 in your
environment v1.0.1 you do not need to worry, unless you install the new
version 2.3.5.
▶︎ on your project (1) activate virtual environment and (2) install the packages ‘beautiful soup (bs4)’ and ‘requests’
▶︎ type the code (1) above inside the ‘app.py’ then (2) run ‘python app.py’