title: How can I adjust pip3 using python3.6 not python3.4 on Ubuntu 14.04?
body: <p>Default <code>python3</code> on Ubuntu 14.04 is of <code>3.4.3</code> but I want to use <code>3.6.3</code> instead.</p>
  
  <p>I followed commands below to install <code>3.6.3</code>:</p>
  
  <pre><code>$ sudo apt-get update
  $ sudo apt-get install build-essential libpq-dev libssl-dev openssl libffi-dev zlib1g-dev
  $ sudo apt-get install python3-pip python3-dev
  
  $ sudo add-apt-repository ppa:jonathonf/python-3.6
  $ sudo apt-get update
  $ sudo apt-get install python3.6
  </code></pre>
  
  <p><code>3.6.3</code> was then available on my Ubuntu:</p>
  
  <pre><code>$ which python3.6
  /usr/bin/python3.6
  </code></pre>
  
  <p>For sure, <code>python3</code> was still pointing to <code>3.4.3</code>:</p>
  
  <pre><code>$ ls -la /usr/bin/python3
  /usr/bin/python3 -&gt; /usr/bin/python3.4
  </code></pre>
  
  <p><code>pip3</code> was available but it used <code>3.4.3</code> instead of <code>3.6.3</code> (what I wanted):</p>
  
  <pre><code>$ pip3 --version
  pip 1.5.4 from /usr/lib/python3/dist-packages (python 3.4)
  </code></pre>
  
  <p>I thought updating <code>/usr/bin/python3</code> would solve the issue so I did adjusting the <code>python3</code> symbolic link making it point to <code>3.6.3</code>:</p>
  
  <pre><code>$ sudo unlink /usr/bin/python3
  $ sudo ln -s /usr/bin/python3.6 /usr/bin/python3
  $ ls -la /usr/bin/python3
  /usr/bin/python3 -&gt; /usr/bin/python3.6
  </code></pre>
  
  <p>But <code>pip3</code> didn't work anymore :(</p>
  
  <pre><code>$ pip3 --version
  Traceback (most recent call last):
    File "/usr/bin/pip3", line 5, in &lt;module&gt;
      from pkg_resources import load_entry_point
    File "/usr/lib/python3/dist-packages/pkg_resources.py", line 1479, in &lt;module&gt;
      register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
  AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
  Error in sys.excepthook:
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
      from apport.fileutils import likely_packaged, get_recent_crashes
    File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in &lt;module&gt;
      from apport.report import Report
    File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in &lt;module&gt;
      import apport.fileutils
    File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in &lt;module&gt;
      from apport.packaging_impl import impl as packaging
    File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 20, in &lt;module&gt;
      import apt
    File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in &lt;module&gt;
      import apt_pkg
  ModuleNotFoundError: No module named 'apt_pkg'
  
  Original exception was:
  Traceback (most recent call last):
    File "/usr/bin/pip3", line 5, in &lt;module&gt;
      from pkg_resources import load_entry_point
    File "/usr/lib/python3/dist-packages/pkg_resources.py", line 1479, in &lt;module&gt;
      register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
  AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
  </code></pre>
  
  <p><strong>UPDATED</strong></p>
  
  <p>I tried with some suggestions:</p>
  
  <pre><code>$ sudo python3.6 -m pip
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$ curl https://bootstrap.pypa.io/get-pip.py | sudo -H python3.6
  </code></pre>
  
  <p>But it showed very similar output:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/usr/lib/python3.6/runpy.py", line 183, in _run_module_as_main
      mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
    File "/usr/lib/python3.6/runpy.py", line 142, in _get_module_details
      return _get_module_details(pkg_main_name, error)
    File "/usr/lib/python3.6/runpy.py", line 109, in _get_module_details
      __import__(pkg_name)
    File "/usr/lib/python3/dist-packages/pip/__init__.py", line 59, in &lt;module&gt;
      from pip.log import logger
    File "/usr/lib/python3/dist-packages/pip/log.py", line 9, in &lt;module&gt;
      import colorama, pkg_resources
    File "&lt;frozen importlib._bootstrap&gt;", line 971, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 955, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 656, in _load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 626, in _load_backward_compatible
    File "/usr/share/python-wheels/setuptools-3.3-py2.py3-none-any.whl/pkg_resources.py", line 1479, in &lt;module&gt;
      register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
  AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
  Error in sys.excepthook:
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
      from apport.fileutils import likely_packaged, get_recent_crashes
    File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in &lt;module&gt;
      from apport.report import Report
    File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in &lt;module&gt;
      import apport.fileutils
    File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in &lt;module&gt;
      from apport.packaging_impl import impl as packaging
    File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 20, in &lt;module&gt;
      import apt
    File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in &lt;module&gt;
      import apt_pkg
  </code></pre>
  
  <p>How can I solve the issue?</p>