title: Why does installing boto3 break my installation of awscli?
body: <p>I am trying to install boto3 so I can use it in my python script that I want to run on an EC2 instance running Ubuntu 14.04. Anyway I install boto3 it breaks my installation of awscli on the non root user. I install awscli using apt get with <code>sudo apt-get install awscli</code>. After I install it, it works on both the root user and the ubuntu user.</p>
  
  <pre><code>ubuntu@ip-10-12-10-8:~$ aws --version
  aws-cli/1.14.65 Python/2.7.6 Linux/3.13.0-143-generic botocore/1.9.18
  ubuntu@ip-10-12-10-8:~$ sudo aws --version
  aws-cli/1.14.65 Python/2.7.6 Linux/3.13.0-143-generic botocore/1.9.18
  </code></pre>
  
  <p>I have also tried installing awscli like AWS suggests with <code>sudo pip install awscli --upgrade --user</code>. Also if it means anything pip only runs as the root user maybe thats installed wrong.</p>
  
  <p>Here is the output when I install boto3 with pip.</p>
  
  <p>But anytime I install boto3 with pip it breaks it for the ubuntu user. I have tried to install boto3 and then install awscli in many different ways and nothing works. Here are the ways I have tried.</p>
  
  <pre><code>ubuntu@ip-10-12-10-8:~$ sudo pip install boto3
  The directory '/home/ubuntu/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
  The directory '/home/ubuntu/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
  Collecting boto3
  /usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/util/ssl_.py:339: 
  SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  SNIMissingWarning
  /usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/util/ssl_.py:137: 
    InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
    InsecurePlatformWarning
    Downloading boto3-1.7.4-py2.py3-none-any.whl (128kB)
      100% |████████████████████████████████| 133kB 6.9MB/s 
  Requirement already satisfied: jmespath&lt;1.0.0,&gt;=0.7.1 in 
  /usr/local/lib/python2.7/dist-packages (from boto3)
  Requirement already satisfied: s3transfer&lt;0.2.0,&gt;=0.1.10 in 
  /usr/local/lib/python2.7/dist-packages (from boto3)
  Collecting botocore&lt;1.11.0,&gt;=1.10.4 (from boto3)
    Downloading botocore-1.10.4-py2.py3-none-any.whl (4.2MB)
      100% |████████████████████████████████| 4.2MB 328kB/s 
  Requirement already satisfied: futures&lt;4.0.0,&gt;=2.2.0; python_version == "2.6" or python_version == "2.7" in /usr/local/lib/python2.7/dist-packages (from s3transfer&lt;0.2.0,&gt;=0.1.10-&gt;boto3)
  Requirement already satisfied: python-dateutil&lt;2.7.0,&gt;=2.1 in 
  /usr/local/lib/python2.7/dist-packages (from botocore&lt;1.11.0,&gt;=1.10.4-&gt;boto3)
  Requirement already satisfied: docutils&gt;=0.10 in /usr/local/lib/python2.7/dist-packages (from botocore&lt;1.11.0,&gt;=1.10.4-&gt;boto3)
  Requirement already satisfied: six&gt;=1.5 in /usr/local/lib/python2.7/dist-packages (from python-dateutil&lt;2.7.0,&gt;=2.1-&gt;botocore&lt;1.11.0,&gt;=1.10.4-&gt;boto3)
  Installing collected packages: botocore, boto3
    Found existing installation: botocore 1.9.18
      Uninstalling botocore-1.9.18:
        Successfully uninstalled botocore-1.9.18
  Successfully installed boto3-1.7.4 botocore-1.10.4
  </code></pre>
  
  <p>And then this is the result. I need aws tool to work on both users like it does before the boto3 install.</p>
  
  <pre><code>ubuntu@ip-10-12-10-8:~$ aws --version
  Traceback (most recent call last):
    File "/usr/local/bin/aws", line 19, in &lt;module&gt;
      import awscli.clidriver
    File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line 17, in &lt;module&gt;
      import botocore.session
  ImportError: No module named botocore.session
  ubuntu@ip-10-12-10-8:~$ sudo aws --version
  aws-cli/1.14.65 Python/2.7.6 Linux/3.13.0-143-generic botocore/1.10.
  </code></pre>
  
  <p>What is going on? I have been at this forever.</p>