Asdf: problems installing awscli on OSX

Created on 8 May 2019  路  7Comments  路  Source: asdf-vm/asdf

Steps to reproduce

  1. install latest python 3.7
  2. pip3 install awscli --upgrade --user
  3. try to find the correct bin path to export on profile

Expected behavior

You should be able to run awscli commands, like aws configure

Actual behavior

aws not found

Environment

OS: OSX 14.4 Mojave

asdf version: latest

Most helpful comment

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.

All 7 comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jthegedus picture jthegedus  路  3Comments

robsonpeixoto picture robsonpeixoto  路  4Comments

Antiarchitect picture Antiarchitect  路  3Comments

peleteiro picture peleteiro  路  3Comments

kevinkjt2000 picture kevinkjt2000  路  4Comments