how to check whether a module is installed in pip code example Example: how to check if pip is installed File"stdin",line 1 pip list Syntax Error: invalid syntax