Overcoming My Nemesis of Virtual Environments Once and For All - NEMESIS

Overcoming My Nemesis of Virtual Environments Once and For All - NEMESIS

I started in JavaScript, HTML, CSS, TypeScript and React. Virtual environments drive me INSANE. After a year of working in Python, and I am pretty proud of my level of Python, it's just embarrassing. So here we are. I will be doing this tutorial in between tasks in small chunks as agreed to by my team.

It's also quite good for when I am feeling stuck on a problem (like I am now) - it gives me some time to think about and process the problem. 

While also doing something productive for work. The plan was to do this tute over two days but my former manager has said that I might learn better by doing it in chunks - he is not wrong.

I am blogging because blogging is the only thing that makes reading possible for me - that or writing handwritten notes.

Why have a virtual environment? Why bother?

What creating a Python virtual envrionment allowsyou to do:
  • It allows you to manage your dependencies separately for different projects. 
Time out here because 
  1. I suddenly feel like I can face my coding problems again
  2. I don't really know how to define a dependency properly.
An image of a cute little dragon and a text that reads "facing my nemesis"

In Python, what is a dependancy?

A dependency in Python is an external package or library that your code relies on to work. Well that wasn't too hard now was it? Installing a virtual environment to manage your packages and dependencies can
  • prevent conflicts
  • maintain a cleaner setup
Python's venv module allows you to
  • create isolated environments
    • that use different versions of libraries
    • or even that use different versions of Python

Comments

Popular posts from this blog

Hello World

“But yesterday, I heard God say, you were born to be the one…”

In the Water, I find Fire