Checking whether pip is installed?
<p>I am using <code>Python 2.7.12</code> and I want to check whether the pip is installed or not. For this, in command line of Python application I wrote pip list and pressed enter. However, I get an error like:</p>

<pre><code>File"stdin",line 1

pip list

Syntax Error: invalid syntax
</code></pre>

<p>So, how can I solve this issue and get the list of modules as an output?</p>

<p>Thanks</p>