Day 2 of learning Data Engineering.
Today I learnt about virtual environment and finally understood what a virtual environment actually is.
Your system/host machine has a global Python.
So if you install packages there, every project you are building shares them and that’s dangerous.
Let's say One project needs pandas 2.0 and another needs pandas 1.5. Virtual environment enables you to run different versions of that pandas without conflict.
A virtual environment creates a small isolated Python world just for that project, its own packages, its own versions, its own everything.
When I ran commands like :
uv run python -v
uv add pandas
It wasn’t using my system Python.
It was using the project’s isolated environment.
That separation is powerful.
Still wrapping my head around Docker networking…
But today, virtual environments clicked.
#DataEngineering #Python #BuildInPublic