Check if a python module is installed or not on the system. The simplest way to do it is in terminal.
Source code viewer
- # Check if a module called django is installed on your system.
- python -c "import django;"
- # As you can see, module name with a typo is not found and gives an error of no module with your inserted name is found.
- python -c "import djngo;"
- # ImportError: No module named 'djngo'Programming Language: Bash