Is there a way to find all Python PyPI packages that were installed with easy_install or pip? I mean, excluding everything that was/is installed with the distributions tools (in this case apt-get on Debian).
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
As of version 1.3 of pip you can now use
pip list
It has some useful options including the ability to show outdated packages. Here's the documentation: https://pip.pypa.io/en/latest/reference/pip_list/
Start with:
To list all packages. Once you found the package you want, use:
This will show you details about this package, including its folder. You can skip the first part if you already know the package name
Click here for more information on pip show and here for more information on pip list.
Example:
pip freeze lists all installed packages even if not by pip/easy_install. On CentOs/Redhat a package installed through rpm is found.
pip list [options] You can see the complete reference here
Adding to @Paul Woolcock's answer,
will create a requirements file with all installed packages in the active environment at the current location which you can run
to install the requirements at another environment.
At least for Ubuntu (maybe also others) works this (inspired by a previous post in this thread):