I am trying to install awscli using pip3 on Linux Mint 17.2 Rafaela.
I am getting the error:
Traceback (most recent call last):
File "/home/jonathan/.local/bin/aws", line 19, in <module>
import awscli.clidriver
ImportError: No module named 'awscli'
These are the steps I am taking, following the aws installation guide:
sudo pip install awscli --upgrade --user
everything seems to install fine.
adding to my .bashrc
export PATH=~/.local/bin:$PATH
then
source ~/.bashrc
then i try the command
aws --version
and i get
Traceback (most recent call last):
File "/home/jonathan/.local/bin/aws", line 19, in <module>
import awscli.clidriver
ImportError: No module named 'awscli'
Can anyone help with this?
EDIT: For anyone visiting this question. There is no way I can test any of these answers because I have since removed this OS and installed Ubuntu. Also I have no need for awscli anymore.
On Windows 10 64bit I was getting the same error.
I have Python 2.7 and 3.7 installed on my PC. I tried the installing awscli using both of the following commands:
I uninstalled the awscli using pip after using the first command.
After running the second command the error message persisted.
I solved the problem by changing the order of paths to search in my "System" PATH variable.
My "System" PATH variable looked like this:
So I used the "Move Up/ Down" buttons in the Environment Variables Control Panel to change the order to look like this:
Now the awscli is running without issues.
I had a similar problem but under Windows 10
I used
pip3 install awscli --upgrade --user
like it is recommended by Amazon.So in my case the problem was that I had 27 and 36 pythons installed:
And I need them both...
... so what I did is:
In the folder where I needed aws I created
file
aws.bat
file
aws.py
now I can run the aws console from that folder just like it's real:
The advantages of doing this is that:
pip3 install awscli --upgrade --user
).I got this command trying to run the AWS CLI, that I had already installed months ago so reinstalling it seemed like the wrong thing to do for me.
I tried to install it again but got a message saying this action was already completed.
I was to able to resolve this error by setting the 'path variable' using this code from where Python is installed on my machine. This code below has helped me a lot in my coding tasks.
setx PATH “C:\Users\user\AppData\Local\Programs\Python\Python35-32
Now I am able to run aws configure which is what I wanted to do anyway. Check out: Install the AWS CLI on Windows for more guidance in this matter.
First off, uninstall whatever you just tried with
sudo pip uninstall awscli
. If you had installed with the--user
flag, make sure to remove any aws remnants in~/.local/
with:If you had followed directions from aws docs to modify your $PATH, and
~/.bashrc
, undo by deleting the line you added to~/.bashrc
and run:For Ubuntu 18.04, here's what worked for me:
Recommended install command from AWS docs:
I found that after doing this, the aws binary was missing from path, and somehow adding it to
$PATH
as they recommended didn't work.Execute the command below to fix this: