![]() To list all installed packages from a Python console using pip, you can utilize the following script: > import pkg_resources Output: absl-py=0.7.0 List Packages in a Console with Pip Keep in mind that pip list will list ALL installed packages (no matter whether they were installed from the Python Package Index or Github, and no matter whether or not they were installed with the pip install command), while pip freeze will list only pip packages (ie., everything installed by whichever pip version you’re using). For example, both pip list and pip freeze will generate a list of installed packages, just with differently formatted results. There are a number of pip commands that you can use to get a list of package names and versions, including outdated packages. Give it a try by signing up for a free ActiveState Platform account.īefore beginning this tutorial on getting a list of installed packages (including those located in site-packages, virtual environments, etc), it’s always a good practice to ensure you have an upto-date version of the Python programming language and the latest version of Pip, Anaconda Navigator and Conda in place. For a complete list of all packages and dependencies (including OS-level and transitive dependencies, as well as shared libraries), you can use the Web GUI, which provides a full Bill of Materials view. ![]() The Pip, Pipenv, Anaconda Navigator, and Conda Package Managers can all be used to generate a simple list of installed Python packages, as well as JSON formatted lists.You can also use the ActiveState Platform’s command line interface (CLI), the State Tool to list all installed packages using a simple “state packages” command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |