Python venv management

When you create a project in python, you should create requirements.txt to specify dependencies, so other people can have the same environment when using your project. However, if you don’t specify module versions in requirements.txt, you could end up with people using the wrong module version, where some APIs can be deprecated or have different behaviors than older versions. Another issue is that maybe you’re working on a few python projects, each uses different python versions (eg....

July 2, 2021 · 3 min · Karn Wong