Quantcast
Channel: How do I get a list of locally installed Python modules? - Stack Overflow
Browsing index pages (35 articles)

How do I get a list of locally installed Python modules?

How do I get a list of Python modules installed on my computer?

View Article


Answer by S.Lott for How do I get a list of locally installed Python modules?

From the shellls site-packagesIf that's not helpful, you can do this.import sysimport osfor p in sys.path: print os.listdir( p )And see what that produces.

View Article


Answer by ChristopheD for How do I get a list of locally installed Python...

help('modules')in a Python shell/prompt.

View Article

Answer by chiggsy for How do I get a list of locally installed Python modules?

Now, these methods I tried myself, and I got exactly what was advertised: All the modules.Alas, really you don't care much about the stdlib. You know what you get with a Python install.Really, I want...

View Article

Answer by johnsyweb for How do I get a list of locally installed Python modules?

In ipython you can type "importTab".In the standard Python interpreter, you can type "help('modules')".At the command-line, you can use pydocmodules.In a script, call pkgutil.iter_modules().

View Article


Answer by stuudent for How do I get a list of locally installed Python modules?

Very simple searching using pkgutil.iter_modulesfrom pkgutil import iter_modulesa=iter_modules()while True: try: x=a.next() except: break if 'searchstr' in x[1]: print x[1]

View Article

Answer by Dan Evans for How do I get a list of locally installed Python modules?

I just use this to see currently used modules:import sys as ss.modules.keys()which shows all modules running on your python.For all built-in modules use:s.modulesWhich is a dict containing all modules...

View Article

Answer by Qiau for How do I get a list of locally installed Python modules?

I ran into a custom installed python 2.7 on OS X. It required X11 to list modules installed (both using help and pydoc).To be able to list all modules without installing X11 I ran pydoc as http-server,...

View Article


Answer by jdsantiagojr for How do I get a list of locally installed Python...

Aside from using pip freeze I have been installing yolk in my virtual environments.

View Article


Answer by Bryce for How do I get a list of locally installed Python modules?

Since pip version 1.3, you've got access to:pip listWhich seems to be syntactic sugar for "pip freeze". It will list all of the modules particular to your installation or virtualenv, along with their...

View Article

Answer by DrkNess for How do I get a list of locally installed Python modules?

In a normal shell, just usepydoc modules

View Article

Answer by Shreyas for How do I get a list of locally installed Python modules?

In case you have an Anaconda Python distribution installed, you could also useconda listin addition to the solutions described in previous answers.

View Article

Answer by Sadheesh for How do I get a list of locally installed Python modules?

If we need to list the installed packages in the Python shell, we can use the help command as follows>>> help('modules package')

View Article


Answer by yegle for How do I get a list of locally installed Python modules?

to get all available modules, run sys.modulesto get all installed modules (read: installed by pip), you may look at pip.get_installed_distributions()For the second purpose, example code:import pipfor...

View Article

Answer by Adam Matan for How do I get a list of locally installed Python...

SolutionDo not use with pip > 10.0!My 50 cents for getting a pip freeze-like list from a Python script:import pipinstalled_packages = pip.get_installed_distributions()installed_packages_list =...

View Article


Answer by Saurabh for How do I get a list of locally installed Python modules?

On Windows, enter this in cmd:cd C:\python\libspython -m pip freeze

View Article

Answer by Pavan Gupta for How do I get a list of locally installed Python...

pip freeze does it all, finding packages. However, one can simply write the following command to list all paths where Python packages are.>>> import site;...

View Article


Answer by PADYMKO for How do I get a list of locally installed Python modules?

This solution is primary based on modules importlib and pkgutil and work with CPython 3.4 and CPython 3.5, but has no support for the CPython 2.Explanationsys.builtin_module_names - names all built-in...

View Article

Answer by Big_Al_Tx for How do I get a list of locally installed Python modules?

As of pip 10, the accepted answer will no longer work. The development team has removed access to the get_installed_distributions routine. There is an alternate function in the setuptools for doing the...

View Article

Answer by James for How do I get a list of locally installed Python modules?

I normally use pip list to get a list of packages (with version).This works in a virtual environment too, of course. To show what's installed in only the virtual environment (not global packages), use...

View Article
Browsing index pages (35 articles)


Latest Images