Setting up the path so AWS cli works properly

2024/10/9 8:32:49

I installed AWSCLI by using:

pip install --upgrade --user awscli

Now if I type aws configure in the cmd I get: 'aws' is not recognized as an internal or external command...

I'm pretty sure the path needs to be set correctly. I know how to go into the environment variables to set the path, but I don't know WHAT to set the path to because I don't see where awscli is installed. By the way, I already have boto3 installed and I'm able to import that just fine.

I should also mention I'm setting this up in windows.

Answer

Hi I just had the same problem, and I managed to solve this!

I'm using python 3.7.0 and pip version 18.

I installed awscli using

pip install --upgrade --user awscli

but it is not added in PATH, and I have no idea how to find it.But when I decided to delete it, running

pip uninstall awscli

it told me that

Uninstalling awscli-1.15.65:
Would remove:c:\users\riz\appdata\roaming\python\python37\scripts\awsc:\users\riz\appdata\roaming\python\python37\scripts\aws.cmdc:\users\riz\appdata\roaming\python\python37\scripts\aws_bash_completerc:\users\riz\appdata\roaming\python\python37\scripts\aws_completerc:\users\riz\appdata\roaming\python\python37\scripts\aws_zsh_completer.shc:\users\riz\appdata\roaming\python\python37\site-packages\awscli-1.15.65.dist-info\*c:\users\riz\appdata\roaming\python\python37\site-packages\awscli\*

So I know the file was installed in

c:\users\riz\appdata\roaming\python\python37\scripts\aws

you just need to add this to PATH! Good Luck!

https://en.xdnf.cn/q/70040.html

Related Q&A

Comparing value with neighbor elements in numpy

Lets say I have a numpy arraya b c A = i j ku v wI want to compare the value central element with some of its eight neighbor elements (along the axis or along the diagonal). Is there any faster way exc…

Is Python bad at XML? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, argum…

Conditional color with matplotlib scatter

I have the following Pandas Dataframe, where column a represents a dummy variable:What I would like to do is to give my markers a cmap=jet color following the value of column b, except when the value i…

Cumulative sum with list comprehension

I have a list of integers:x = [3, 5, 2, 7]And I want to create a new list where the nth element is the sum of elements in x from 0 to n-1.This would result in:y = [0, 3, 8, 10]How can I do this with li…

How to get image size in KB while using Pillow-python before storing to disk?

Im using Pillow for image processing in Python,url="http://www.image.com/some_image.jpg";path = io.BytesIO(urllib.request.urlopen(url).read())original_image = Image.open(path)Any idea how i c…

Python: Print only one time inside a loop

I have a code where I want capture a video from a camera. I want to use Logging library of Python to get messages on the shell or export them to a text file.Here is a part of my code where inside the w…

Calling Different Functions in Python Based on Values in a List

I have a script that takes a list of metrics as an input, and then fetches those metrics from the database to perform various operations with them. My problem is that different clients get different s…

takes 1 positional argument but 2 were given

I would like to run a command line tool to run in a separate function and passed to the button click the additional command for this program but each time I get this as a response.takes 1 positional ar…

With py.test, database is not reset after LiveServerTestCase

I have a number of Django tests and typically run them using py.test. I recently added a new test case in a new file test_selenium.py. This Test Case has uses the LiveServerTestCase and StaticLiveSer…

Using flask wtforms validators without using a form

Im receiving user registration data from an iOS application and Id like to use the validators that come with wtforms to make sure the email and password are acceptable. However, Im not using a flask f…