Whenever possible I prefer python -m <package> over directly executing <package> on the command line. This ensures that you have the version of the package that corresponds to your Python installation, instead of whatever is on top of the path variable.
Examples include python -m virtualenv, python -m pip, python -m http.server, python -m cProfile, python -m snakeviz, etc.
Whenever possible I prefer
python -m <package>
over directly executing<package>
on the command line. This ensures that you have the version of the package that corresponds to your Python installation, instead of whatever is on top of the path variable.Examples include
python -m virtualenv
,python -m pip
,python -m http.server
,python -m cProfile
,python -m snakeviz
, etc.It would be great if pip-chill also supported this. It's really easy, all that's needed is to add a
__main__.py
to the package, in a manner similar to this: https://github.com/jiffyclub/snakeviz/commit/2fced2fed965de823c0704bee8079b487973d641#diff-5ea63581f9f31b064ad597564a2970012ab32af9fb7b6bf4593265ef9473c391.