You are here

7 November 2015

Check if a python module is installed or not on the system. The simplest way to do it is in terminal.

Source code viewer
  1. # Check if a module called django is installed on your system.
  2. python -c "import django;"
  3.  
  4. # 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.
  5. python -c "import djngo;"
  6. # ImportError: No module named 'djngo'
Programming Language: Bash