title: Install Beautiful Soup using pip
body: <p>I am trying to install <a href="https://en.wikipedia.org/wiki/Beautiful_Soup" rel="nofollow noreferrer">Beautiful Soup</a> using <code>pip</code> in Python 2.7. I keep getting an error message and can't understand why.</p>
  <p>I followed the instructions to install pip, which was installed to the following directory: <code>c:\Python27\Scripts\pip.exe</code>. Then I tried adding it to the path, and running the <code>pip install package</code> command.</p>
  <p>I tried it two different ways:</p>
  <pre><code>import sys
  sys.path.append('C:\\Python27\\Scripts\\pip.exe')
  pip install beautifulsoup4
  
  import sys
  sys.path.append('C:\\Python27\\Scripts')
  pip install beautifulsoup4
  </code></pre>
  <p>Both give me this error message:</p>
  <pre><code>&gt;&gt;&gt; pip install beautifulsoup4
  SyntaxError: invalid syntax
  </code></pre>
  <p>The shell is highlighting the word &quot;install&quot; and saying that it's invalid syntax.</p>
  <p>What's going on?</p>