Top "Module" questions

A logical subdivision of a larger, more complex system.

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

I would like to get a list of Python modules, which are in my Python installation (UNIX server). How can …

python module pip
What is __init__.py for?

What is __init__.py for in a Python source directory?

python module package python-packaging
Importing modules from parent folder

I am running Python 2.5. This is my folder tree: ptdraft/ nib.py simulations/ life/ life.py (I also have __init__.…

python module path directory python-import
How to list all functions in a Python module?

I have a python module installed on my system and I'd like to be able to see what functions/classes/…

python reflection module inspect
How to retrieve a module's path?

I want to detect whether module has changed. Now, using inotify is simple, you just need to know the directory …

python module inotify
How do I unload (reload) a Python module?

I have a long-running Python server and would like to be able to upgrade a service without restarting the server. …

python module reload python-import
How do I find the location of Python module sources?

How do I learn where the source file for a given Python module is installed? Is the method different on …

python module
Python 3: ImportError "No Module named Setuptools"

I'm having troubles with installing packages in Python 3. I have always installed packages with setup.py install. But now, when …

python module package setup.py python-3.3
Import a file from a subdirectory?

I have a file called tester.py, located on /project. /project has a subdirectory called lib, with a file called …

python module subdirectory python-import
`from ... import` vs `import .`

I'm wondering if there's any difference between the code fragment from urllib import request and the fragment import urllib.request …

python import syntax module python-import