title: How do I change the fact that pip is installing to the wrong copy of python?
body: <p>I used <code>pip</code> to install a script, named <code>stdlib_list</code>:</p>
  <pre><code>Microsoft Windows [Version 10.0.18362.418]
  (c) 2019 Microsoft Corporation. All rights reserved.
  
  C:\Users\Sam&gt;python -m pip install stdlib_list --user
  Requirement already satisfied: stdlib_list in c:\users\sam\appdata\roaming\python\python37\site-packages (0.5.0)
  </code></pre>
  <p>Note that <code>stdlib_list</code> installed to a folder named <code>python37</code></p>
  <p>I have checked the path that Windows is using.</p>
  <p><a href="https://i.stack.imgur.com/ZKXgw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZKXgw.png" alt="enter image description here" /></a></p>
  <p>Note that the environment variable <code>path</code> points to <code>Python38-32</code>, which is not <code>python37</code></p>
  <p>What gives?</p>
  <h2>Edit:</h2>
  <p>Output of Windows <code>where pip</code>:</p>
  <pre><code>C:\Users\Sam&gt;where pip
  C:\Program Files\Python37\Scripts\pip.exe
  C:\Users\Sam\AppData\Local\Programs\Python\Python38-32\Scripts\pip.exe
  
  C:\Users\Sam&gt;
  </code></pre>
  <p>and <code>pip -V</code>:</p>
  <pre><code>C:\Users\Sam&gt;pip -V
  Traceback (most recent call last):
    File &quot;c:\program files\python37\lib\runpy.py&quot;, line 193, in _run_module_as_main
      &quot;__main__&quot;, mod_spec)
    File &quot;c:\program files\python37\lib\runpy.py&quot;, line 85, in _run_code
      exec(code, run_globals)
    File &quot;C:\Program Files\Python37\Scripts\pip.exe\__main__.py&quot;, line 9, in &lt;module&gt;
  TypeError: 'module' object is not callable
  </code></pre>