SoFunction
Updated on 2024-11-16

How to view installed modules in python

View python internal module commands, built-in functions, view python installed module commands

This can be done with dir(modules)

Or use pip list

Or use help('modules')

Or use python -m pydoc -p 1234

Both list all installed modules

Knowledge Point Expansion:

python to see where a module is installed

I. Open the command line and type

python -v

Second, here to OpenCV as an example, cv2 for OpenCV module name, and then enter the

import cv2

to this article on python how to view the installed module of the article is introduced to this, more related to python how to view what modules are installed please search my previous posts or continue to browse the following related articles I hope that you will support me more in the future!