title: Python3.6 ImportError: cannot import name 'main' Linux RHEL6
body: <p>My ultimate goal is to download and install awscli
  <code>http://docs.aws.amazon.com/cli/latest/userguide/awscli-install-linux.html</code></p>
  
  <p>Seems python and pip are required in order to accomplish my goal.</p>
  
  <p>Installing python via yum isn't working for me, so I downloaded and installed python3 manually as follows:</p>
  
  <pre><code>wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz
  tar xf Python-3.6.1.tar.xz
  cd Python-3.6.1.tar.xz
  ./configure
  make
  sudo make altinstall
  </code></pre>
  
  <p>When I do </p>
  
  <blockquote>
    <p><code>pip3.6 --version</code> </p>
  </blockquote>
  
  <p>I get this:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/usr/local/bin/pip3.6", line 7, in &lt;module&gt;
      from pip import main
  ImportError: cannot import name 'main'
  </code></pre>
  
  <p><strong>Environment:</strong>
  RHEL 6.6
  Accessed via ssh</p>
  
  <p>What is going on? How to install pip and python3.6 correctly on my linux box? </p>
  
  <p><em>Edit:</em></p>
  
  <p>When trying to install via yum it fails so I am trying to avoid using yum:</p>
  
  <p><code>[asemani@rcdc9pfda5r Python-3.6.1]$ sudo yum -y install python-pip</code></p>
  
  <pre><code>[sudo] password for asemeani: 
  Loaded plugins: security
  Setting up Install Process
  No package python-pip available.
  Error: Nothing to do
  </code></pre>
  
  <p><em>Another Edit:</em></p>
  
  <p>After importing sys and then called sys.path this is what I get:</p>
  
  <pre><code>[asemani@rcdc9pfda5r Python-3.6.1]$ python3.6
  Python 3.6.1 (default, Apr 28 2017, 11:03:27) 
  [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import sys
  &gt;&gt;&gt; sys.path
  ['', '/usr/local/lib/python36.zip', '/usr/local/lib/python3.6', '/usr/local/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6/site-packages']
  &gt;&gt;&gt; quit()
  [asemani@rcdc9pfda5r Python-3.6.1]$ ls -l /usr/local/lib/python3.6/site-packages
  total 32
  -rw-------  1 root root  126 Apr 27 23:45 easy_install.py
  drwx------ 11 root root 4096 Apr 27 23:45 pip
  drwx------  2 root root 4096 Apr 27 23:45 pip-9.0.1.dist-info
  drwx------  5 root root 4096 Apr 27 23:45 pkg_resources
  drwx------  2 root root 4096 Apr 27 23:45 __pycache__
  -rw-r--r--  1 root root  119 Apr 27 23:45 README.txt
  drwx------  5 root root 4096 Apr 27 23:45 setuptools
  drwx------  2 root root 4096 Apr 27 23:45 setuptools-28.8.0.dist-info
  </code></pre>