3 ms·
> I'm relatively new to python. I use venv, pip and requirements.txt. It's dead simple. What am I missing? Compare this with Node. It always installs locally b
by xdennis 4y ago
> I'm relatively new to python. I use venv, pip and requirements.txt. It's dead simple. What am I missing?
Compare this with Node. It always installs locally by default and always installs in node_modules regardless of which package manager you use. This is integrated into Node so you never need to modify the path like in Python. You don't have to guess whether your packages are installed in .venv, env, environ, or whatever someone else decides.
`pip` actually has a lot of issues with regards to deciding which version to use. That's why people moved to pipenv... then pipenv stagnated and people moved to poetry.
Using `requirements.txt` is dead simple but it ignores issues such as version locking. If you just add the packages you need to `requirements.txt`, then every time you install you could get a different set of packages. If you do `pip freeze > requirements.txt` then you don't know what comes from what.