List of Installed Python Packages via Command Line
List of Installed Python Packages via Command Line
Introduction
Python, being a versatile and widely used programming language, relies heavily on packages and libraries to extend its functionality. In this blog post, we will explore how to list installed Python packages using the command line.
Using pip to List Installed Packages
One of the most common ways to manage Python packages is through pip—the Python package installer. To list all installed packages along with their versions, you can use the following command:
pip list
Alternative Methods
While pip is the standard tool for managing Python packages, there are alternative methods to check for installed packages. For instance, you can use the following command:
pip freeze
Customizing the Output
If you prefer a more concise output showing only the package names without version details, you can use the following command:
pip list | awk '{print $1}'
Conclusion
Listed above are some ways to view the installed Python packages through the command line. With this knowledge, you can easily stay informed about the packages present in your Python environment and manage them efficiently.