1  Virtual Environments

1.1 Task : Manage Python Virtual Environments

Based on your Operating System, create and activate multiple/different Python virtual environments.

1.1.1 Virtual Environment 1

  • Create a Python virtual environment named env1
  • Activate the environment named env1
  • Install package requests version 2.18.4 in this environment
  • List the existing packages in this environment
  • Create a Notebook (*.ipynb) called FirstNotebook.ipynb in this environment
  • Add in the notebook, as the first block, the following Markdown
    • “# My First Notebook”
  • Add as the next block the following Code
    • print(“I now know about Markdown & Code blocks.”)
    • print(“I also created my first Python environment.”)

1.1.2 Virtual Environment 2

  • Create a Python environment named env2
  • Install package requests version 2.18.4 in this environment
  • List the existing packages in this environment

1.1.3 Virtual Environment 3

  • Create a Python environment named env3
  • Activate the environment named env3
  • Install package requests with the latest version in this environment
  • List the existing packages in this environment

1.1.4 Questions

Are the virtual environments the same ?

What is different ?

What are the benefits of having multiple environments ?