ImportError: cannot import name api - Error Configuring aws_cli on centos 7 : <p>I successfully installed aws using <code>pip install awscli --upgrade --user</code>. However, when I'm trying to <code>aws configure</code> or <code>aws --version</code>, I'm getting following error</p>

<pre><code>Traceback (most recent call last):
  File "/bin/aws", line 9, in &lt;module&gt;
    load_entry_point('aws==0.2.5', 'console_scripts', 'aws')()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.7/site-packages/aws/main.py", line 7, in &lt;module&gt;
    from fabric import api as fab
ImportError: cannot import name api
</code></pre>

<p>My System details are as follows</p>

<pre><code>Python 2.7.5
pip 18.0 from /usr/lib/python2.7/site-packages/pip (python 2.7)
Operating System: CentOS Linux 7 (Core)
Kernel: Linux 3.10.0-862.9.1.el7.x86_64
Architecture: x86-64
</code></pre>

<p>Path Variable is set to <code>/usr/local/rvm/gems/ruby-2.4.1/bin:/usr/local/rvm/gems/ruby-2.4.1@global/bin:/usr/local/rvm/rubies/ruby-2.4.1/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/lib:/opt/gradle/gradle-4.7/bin:/usr/local/rvm/bin:/root/bin</code></p>
