

To see what Python packages are already installed, use the freeze command: $ python3 -m pip freeze There's a lot out there for Python, so look at Python Package Index (PyPi) to see what's available. Or maybe you want to try the Ranger file manager: $ python3 -m pip install ranger It's one pip command away: $ python3 -m pip install yamllint For instance, yamllint is a must-have command for anyone writing YAML files, whether for Kubernetes or Ansible or just for arbitrary config files. You can use pip for quick installs of useful Python utilities. If you install software with dnf or Flatpak, you may never have to use pip for this because those packaging systems automatically install dependencies. If the developer hasn't included a list of dependencies, it's up to you to read the documentation to learn what dependencies are required. If that file exists, you can process it with pip: $ python3 -m pip install -r requirements.txt Usually, a developer includes a list of dependencies in a file called requirements.txt in the application directory. If it were bundled with unrelated application code, it would be difficult for you to update it independently of the application. An application may not bundle support libraries along with its own code because the library isn't maintained by the same developer. When you download a script or an application written in Python, it may require specific Python libraries (or "modules" in Python terminology) to run.


Download RHEL 9 at no charge through the Red Hat Developer program.

