Where Do I Save Python Modules

For the most part, modules are just Python scripts that are stored in your Lib or Lib/site-packages folder, or local to the script being run. That’s it. The installation of *most* modules is simply the moving of the module’s files into these directories.

Where are Python modules stored?

Usually in /lib/site-packages in your Python folder. (At least, on Windows.) You can use sys. path to find out what directories are searched for modules.

How do I see Python modules?

In the standard Python interpreter, you can type ” help(‘modules’) “. At the command-line, you can use pydoc modules . In a script, call pkgutil. iter_modules() .

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest