Skip Navigation
25 comments
  • To add an alternative to what's already been suggested: you can keep a requirements.in with your explicit dependencies, and use pip-tools's pip-compile to generate requirements.txt with the full tree, version locked. Or you can generate this from a pyproject.toml. Then you can use pip-tools's pip-sync to install and uninstall packages to make your actual environment match the .txt lockfile.

  • Thanks, i will look into poetry. Yeah the global python package are main problem. Should've used vnev from start. 😅

  • the ez way, delete site-packages & rando venv, then start anew with a venv + pip install from requirements.txt

25 comments