title: PIP module has no attribute "main"
body: <p>EDIT: The computer in question was a client machine with restrictions on what software could be installed. I'm unsure if that may have been a cause of the issue or if the client's IT department gave the machine a corrupted version of pip. The recommended answers below probably would have worked but were blocked by the company's IT department and required admin login to do. I have since left that project and hope to avoid similar situations.</p>
  
  <p>I'm attempting to install a WHL file</p>
  
  <p>While attempting to run:</p>
  
  <pre><code>import pip
  my_path = &lt;a path to the WHL file&gt;
  pip.main(['install', my_path])
  </code></pre>
  
  <p>I received an Attribute error: </p>
  
  <pre><code>'module' object has no attribute 'main'
  </code></pre>
  
  <p>I ran help(pip) and </p>
  
  <pre><code>__main__ 
  </code></pre>
  
  <p>was listed as a package content.</p>
  
  <p>I'm running Python 3.4 in the console.</p>