Python·100 questions

How to properly set dependencies in a project?

Answer
Create venv.
Install packages via python -m pip install ....
Freeze dependencies: pip freeze > requirements.txt.
On another PC: pip install -r requirements.txt.
For larger projects, consider Poetry/uv.
Was this answer helpful?

More questions in this topic

Related questions from other topics