3 ms·
I use pip-compile in the pip-tools package: Keep your high-level dependencies in requirements.in. Create a virtual environment using venv. Run `pip-compile r
by bart_spoon 4y ago
I use pip-compile in the pip-tools package:
Keep your high-level dependencies in requirements.in.
Create a virtual environment using venv.
Run `pip-compile resolver=backtracking`. It autogenerates a requirements.txt file with all dependencies and sub-dependencies and their versions. This essentially acts as a lock file from other languages/frameworks.
Install from the autogenerated requirements.txt file in the venv virtual environment.
If a dependency changes, change in requirements.in, recompile the .txt file, and reinstall.
- MonaroVXR 4y ago>Run `pip-compile resolver=backtracking` This is new for me. I used `pip freeze > requirements.txt`