title: PIP --upgrade not working Python3.4.4
body: <p>I've looked at a number of posts on this and nothing seems to fix it. I initally started out on Python 3.5, heard that there were several unresolved issues with pip and so I uninstalled and reinstalled Python 3.4.4 - </p>
  
  <p>I want to use pyautogui for a work task, but when I try to install pyautogui directly after Python3.4.4 installation it tells me the PIL Module can't be found. I read in another article to install 3.4.4 and update pip, then install pyautogui. Cool, so I installed 3.4.4, I needed to upgrade pip. So I entered in </p>
  
  <pre><code>Scripts\pip.exe install --upgrade pip
  </code></pre>
  
  <p>from the command line in the root folder. Every time I get this</p>
  
  <pre><code> Exception:
  Traceback (most recent call last):
    File "h:\python34\lib\shutil.py", line 527, in move
      os.rename(src, real_dst)
  PermissionError: [WinError 32] The process cannot access the file because it is
  being used by another process: 'h:\\python34\\scripts\\pip.exe' -&gt; 'C:\\Users\\z
  jf\\AppData\\Local\\Temp\\pip-qo75adq9-uninstall\\python34\\scripts\\pip.exe'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "h:\python34\lib\site-packages\pip\basecommand.py", line 211, in main
    File "h:\python34\lib\site-packages\pip\commands\install.py", line 311, in run
  
    File "h:\python34\lib\site-packages\pip\req\req_set.py", line 640, in install
    File "h:\python34\lib\site-packages\pip\req\req_install.py", line 716, in unin
  stall
    File "h:\python34\lib\site-packages\pip\req\req_uninstall.py", line 125, in re
  move
    File "h:\python34\lib\site-packages\pip\utils\__init__.py", line 315, in renam
  es
    File "h:\python34\lib\shutil.py", line 540, in move
      os.unlink(src)
  PermissionError: [WinError 32] The process cannot access the file because it is
  being used by another process: 'h:\\python34\\scripts\\pip.exe'
  </code></pre>
  
  <p>Thing is, nothing is running in that folder. I don't have windows explorer open to it, I don't have anything accessing any files in there, and I'm obviously running it from an upper level directory using the command line. So I have no idea why it's saying that pip.exe is being used by another process. The only process it's being run by is itself and if that's the issue, then how in the world are you supposed to upgrade it?</p>
  
  <p>**EDIT: ** Per the accepted answer, in order to get PIP to update I used the command </p>
  
  <p><code>python -m pip install -U pip</code></p>
  
  <p>Once that worked I tried to install pyautogui yet again. It still said that PIL module could not be found. PIL is the Python Image Library. I installed it using</p>
  
  <p><code>python -m pip install image</code></p>
  
  <p>And once that worked I then installed pyautogui like so</p>
  
  <p><code>python -m pip install pyautogui</code></p>