pip3 install awscli --upgrade --userYou should be able to run awscli commands, like aws configure
aws not found
OS: OSX 14.4 Mojave
asdf version: latest
This issue is specific to asdf-python. Please open an issue there - https://github.com/danhper/asdf-python
Hi,
Found the correct path:
export PATH=/Users/$USER/.local/bin:$PATH
Hope this helps someone in the future
I suspect that you simply forgot to run asdf reshim python
asdf should not install anything in ~/.local/bin so the executable there might have been installed through another method.
I tried all sort of things including reshim, but the only one that worked was that, the problem is that aws looks for the python there and asdf installs elsewhere, so setting the path solves
in theory asdf should not install anything to ~/.local/bin but the reality is that awscli does get installed there.
So the suggestion by @Rovel is considered a correct one
I came across this discussion after running into the same issue, but I found a different solution. Adding this comment in case anyone else finds it, too.
pip install awscli without the --user flag installs the aws binaries to the correct location under $(asdf where python). The aws commands work as expected after running asdf reshim python and reloading my shell (zsh).
Note that pip installs the libraries to ~/.local/lib/pythonX.Y/site-packages whether or not --user is provided.
Mojave 10.14.6 with current asdf-vm and asdf-python
Is this issue present with the new AWS CLI v2? And is upgrading to the new AWS CLI tool a showstopper?
Most helpful comment
I suspect that you simply forgot to run
asdf reshim pythonasdf should not install anything in
~/.local/binso the executable there might have been installed through another method.