Modern Python Projects Transcripts
Chapter: Course conclusion and review
Lecture: pipx

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Sometimes you want to have a python package that is available globally on your computer.
0:05 For example, the code formatter black or code Linter flake 8.
0:09 Those are packages that you want to use in all your projects or even outside of
0:14 any project. So there is no point in installing them inside the virtual environment,
0:19 because then you'll always have to activate the virtual environment.
0:22 Run black or flake 8 command,
0:25 and then deactivate it. I mean,
0:27 you can do this, but that's very inconvenient.
0:29 So a much better way is to use a tool called pipx.
0:33 Pipx will install each package in a separate virtual environment,
0:37 but at the same time they will be available globally.
0:41 So for you, there will be no difference in how you use them.
0:44 You will just call black or flake 8 in your terminal,
0:47 but at the same time, because they're installed inside virtual environments.
0:52 pipx will make sure that their dependencies don't conflict with each other.