LoginSignup
1
0

More than 5 years have passed since last update.

Amazon Linux の aws cli が ImportError: No module named configloader とか吐いてる時の対処方法

Last updated at Posted at 2016-12-12

こんなのが出ている

aws
Traceback (most recent call last):
  File "/usr/bin/aws", line 19, in <module>
    import awscli.clidriver
  File "/usr/lib/python2.7/dist-packages/awscli/clidriver.py", line 42, in <module>
    from awscli.alias import AliasLoader
  File "/usr/lib/python2.7/dist-packages/awscli/alias.py", line 18, in <module>
    from botocore.configloader import raw_config_parse
ImportError: No module named configloader

こうする

sudo pip uninstall awscli
sudo yum remove aws-cli
sudo -H pip install awscli --ignore-installed six
~/.bash_profile
export PYTHONPATH="/usr/local/lib/python2.7/site-packages:$PYTHONPATH"
source ~/.bash_profile
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0