How to use pip in Windows?
<p>I am trying to install some modules using <code>pip</code>. My system is <code>Windows 7 64-bit</code>, and I'm using <code>Python Shell</code> and <code>Python 2.7</code>.</p>

<p>I've typed in following code to start the installation:</p>

<pre><code>python -m pip install traitlets
</code></pre>

<p>According to <a href="https://docs.python.org/3.6/installing/index.html" rel="noreferrer">this page</a>, the above code should work. However I've got <code>pip</code> highlighted in red and an error message:</p>

<pre><code>SyntaxError: invalid syntax
</code></pre>

<p>Can someone please point out what is wrong with my code?</p>