Freeze installed packages

Save exact versions of all installed packages

pip freeze > requirements.txt

tool
python15 commands
tags
python

More python commands

  • pip list --outdated --format=columns

    List packages with newer versions available

  • python3 -m http.server 8080

    Serve current directory over HTTP on port 8080

  • python3 -m json.tool < input.json

    Pretty-print a JSON file using stdlib

  • python3 -m cProfile -s cumulative script.py | head -30

    CPU profiling sorted by cumulative time

  • python3 -m pdb script.py

    Start script under the Python debugger

all 15 python commands