title: Physically uninstalled Python 3.4 to make pip3 install "requests" package to Python 3.5, how do I fix the mess that ensued?
body: <p>I am using Ubuntu 14.04</p>
  
  <p>I wanted to install package "requests" to use in python 3.5, so I installed it using pip3. I could see it in /usr/lib/python3.4, but while trying to actually execute scripts with Python 3.5 I always got "ImportError: No module named 'requests'"</p>
  
  <p>OK, so I figured, perhaps that's because the package is not in python3.5 but in python3.4. Therefore, I tried to uninstall and install i again, but it just kept popping up where I didn't want it (not to mention, when I run apt-get remove pip3-requests, it actually removed pip3 for me as well lol). Therefore, I tried physically removing python3.4 from usr/lib and usr/local/lib in order to try and see if maybe pip3 was confused and installed packages in wrong directories.</p>
  
  <p>I'm afraid it was not a good idea... when I now run e.g.<br>
  <code>sudo pip3 install reqests</code>  </p>
  
  <p>I get the following error:<br>
  <code>Could not find platform independent libraries &lt;prefix&gt;
  Consider setting $PYTHONHOME to &lt;prefix&gt;[:&lt;exec_prefix&gt;]
  Fatal Python error: Py_Initialize: Unable to get the locale encoding
  ImportError: No module named 'encodings'
  </code></p>
  
  <p>Is there any way to fix this now? And to actually use requests package?</p>
  
  <p>When I use</p>
  
  <pre><code>sudo apt-get install python3-pip
  </code></pre>
  
  <p>It works and starts unpacking etc. but then I get a long error that starts with:</p>
  
  <pre><code>Setting up python3.4 (3.4.3-1ubuntu1~14.04.3)
  Could not find platform independent libraries &lt;prefix&gt;
  Consider setting $PYTHONHOME to &lt;prefix&gt;[:&lt;exec_prefix&gt;]
  Fatal Python error: Py_Initialize: Unable to get the locale encoding
  ImportError: No module named 'encodings'
  Aborted
  dpkg: error processing package python3.4 (--configure):
  subprocess installed post-installation script returned error exit status 134
  dpkg: dependency problems prevent configuration of python3:
  </code></pre>
  
  <p>(...)
  and ends with   </p>
  
  <pre><code>python3 depends on python3.4 (&gt;= 3.4.0-0~); however:
   Package python3.4 is not configured yet.
  dpkg: error processing package python3-wheel (--configure):
  dependency problems - leaving unconfigured
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  </code></pre>