

Neccessary? No. You showed that by coding this with your main python environment. Important? Yes. Using a project specific virtual python environment allows you to only use the modules needed and protects your main environment from malware packages and incompatible packages that could not play well with your OS and other projects you are working on.
This. As someone who migrated an organization’s repos from a self hosted Git server to GitHub (begrudgingly) and then back to a self hosted Git server again when it didn’t meet the business needs … emphatically this.