AWSCLI install on Mac successful, then bash commands fail












0















I'm trying to install the AWSCLI on my Mac (OS 10.14).



First of all, one of the first things I did with this Mac was follow these instructions for upgrading Python, and so my system Python is now 3.7.1 (i.e., this is returned when I enter python --version).



Steps I've taken:



Now regarding awscli, I first tried simply pip install awscli --upgrade --user based on the AWS docs here. This was successful, but then bash commands like aws configure and aws --version resulted in the response -bash: aws: command not found.



So, I ran pip uninstall awscli in hopes of trying a different method. I then followed these instructions for bundled installation. Again, the installation was successful, and again the aws command cannot be found.



Using guidance posted here, I tried adding export PATH=~/Library/Python/3.7/bin/:$PATH to my .profile, but this did not work either. (I tried both overwriting the default export PATH and adding the above as a separate line - neither worked.)



Potential root cause:



There is an alias for aws in /usr/local/bin, however when I click "show original," I get the error original item cannot be found. I assume the solution lies in fixing this alias, but I'm not sure what it should be pointing to.



Thanks in advance for your assistance.



EDIT: This question is similar to the one posted here, however the issue persists even when not installing with pip install --user and instead using AWS's bundled installer.










share|improve this question

























  • If you're not using virtual environments, I strongly recommend it for managing pip installed modules. I use pyenv which also lets you manage multiple python versions if you wish.

    – Toby
    Jan 18 at 14:24











  • Possible duplicate of Python console_scripts doesn't work when pip install --user

    – phd
    Jan 18 at 15:39











  • stackoverflow.com/…

    – phd
    Jan 18 at 15:39











  • I am not using virtual environments, thanks for the suggestion @Toby.

    – Chris Woodruff
    Jan 18 at 16:04











  • This is very similar to that issue, @phd, but the accepted answer does not work for me (the answer itself is also similar to the link I posted above ). I'm happy to move conversation there anyway, to reduce clutter, however I feel it might be valuable to the community to have this question phrased separately, in awscli-specific terms.

    – Chris Woodruff
    Jan 18 at 16:06
















0















I'm trying to install the AWSCLI on my Mac (OS 10.14).



First of all, one of the first things I did with this Mac was follow these instructions for upgrading Python, and so my system Python is now 3.7.1 (i.e., this is returned when I enter python --version).



Steps I've taken:



Now regarding awscli, I first tried simply pip install awscli --upgrade --user based on the AWS docs here. This was successful, but then bash commands like aws configure and aws --version resulted in the response -bash: aws: command not found.



So, I ran pip uninstall awscli in hopes of trying a different method. I then followed these instructions for bundled installation. Again, the installation was successful, and again the aws command cannot be found.



Using guidance posted here, I tried adding export PATH=~/Library/Python/3.7/bin/:$PATH to my .profile, but this did not work either. (I tried both overwriting the default export PATH and adding the above as a separate line - neither worked.)



Potential root cause:



There is an alias for aws in /usr/local/bin, however when I click "show original," I get the error original item cannot be found. I assume the solution lies in fixing this alias, but I'm not sure what it should be pointing to.



Thanks in advance for your assistance.



EDIT: This question is similar to the one posted here, however the issue persists even when not installing with pip install --user and instead using AWS's bundled installer.










share|improve this question

























  • If you're not using virtual environments, I strongly recommend it for managing pip installed modules. I use pyenv which also lets you manage multiple python versions if you wish.

    – Toby
    Jan 18 at 14:24











  • Possible duplicate of Python console_scripts doesn't work when pip install --user

    – phd
    Jan 18 at 15:39











  • stackoverflow.com/…

    – phd
    Jan 18 at 15:39











  • I am not using virtual environments, thanks for the suggestion @Toby.

    – Chris Woodruff
    Jan 18 at 16:04











  • This is very similar to that issue, @phd, but the accepted answer does not work for me (the answer itself is also similar to the link I posted above ). I'm happy to move conversation there anyway, to reduce clutter, however I feel it might be valuable to the community to have this question phrased separately, in awscli-specific terms.

    – Chris Woodruff
    Jan 18 at 16:06














0












0








0








I'm trying to install the AWSCLI on my Mac (OS 10.14).



First of all, one of the first things I did with this Mac was follow these instructions for upgrading Python, and so my system Python is now 3.7.1 (i.e., this is returned when I enter python --version).



Steps I've taken:



Now regarding awscli, I first tried simply pip install awscli --upgrade --user based on the AWS docs here. This was successful, but then bash commands like aws configure and aws --version resulted in the response -bash: aws: command not found.



So, I ran pip uninstall awscli in hopes of trying a different method. I then followed these instructions for bundled installation. Again, the installation was successful, and again the aws command cannot be found.



Using guidance posted here, I tried adding export PATH=~/Library/Python/3.7/bin/:$PATH to my .profile, but this did not work either. (I tried both overwriting the default export PATH and adding the above as a separate line - neither worked.)



Potential root cause:



There is an alias for aws in /usr/local/bin, however when I click "show original," I get the error original item cannot be found. I assume the solution lies in fixing this alias, but I'm not sure what it should be pointing to.



Thanks in advance for your assistance.



EDIT: This question is similar to the one posted here, however the issue persists even when not installing with pip install --user and instead using AWS's bundled installer.










share|improve this question
















I'm trying to install the AWSCLI on my Mac (OS 10.14).



First of all, one of the first things I did with this Mac was follow these instructions for upgrading Python, and so my system Python is now 3.7.1 (i.e., this is returned when I enter python --version).



Steps I've taken:



Now regarding awscli, I first tried simply pip install awscli --upgrade --user based on the AWS docs here. This was successful, but then bash commands like aws configure and aws --version resulted in the response -bash: aws: command not found.



So, I ran pip uninstall awscli in hopes of trying a different method. I then followed these instructions for bundled installation. Again, the installation was successful, and again the aws command cannot be found.



Using guidance posted here, I tried adding export PATH=~/Library/Python/3.7/bin/:$PATH to my .profile, but this did not work either. (I tried both overwriting the default export PATH and adding the above as a separate line - neither worked.)



Potential root cause:



There is an alias for aws in /usr/local/bin, however when I click "show original," I get the error original item cannot be found. I assume the solution lies in fixing this alias, but I'm not sure what it should be pointing to.



Thanks in advance for your assistance.



EDIT: This question is similar to the one posted here, however the issue persists even when not installing with pip install --user and instead using AWS's bundled installer.







python bash amazon-web-services pip aws-cli






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 18 at 19:21







Chris Woodruff

















asked Jan 18 at 14:13









Chris WoodruffChris Woodruff

246




246













  • If you're not using virtual environments, I strongly recommend it for managing pip installed modules. I use pyenv which also lets you manage multiple python versions if you wish.

    – Toby
    Jan 18 at 14:24











  • Possible duplicate of Python console_scripts doesn't work when pip install --user

    – phd
    Jan 18 at 15:39











  • stackoverflow.com/…

    – phd
    Jan 18 at 15:39











  • I am not using virtual environments, thanks for the suggestion @Toby.

    – Chris Woodruff
    Jan 18 at 16:04











  • This is very similar to that issue, @phd, but the accepted answer does not work for me (the answer itself is also similar to the link I posted above ). I'm happy to move conversation there anyway, to reduce clutter, however I feel it might be valuable to the community to have this question phrased separately, in awscli-specific terms.

    – Chris Woodruff
    Jan 18 at 16:06



















  • If you're not using virtual environments, I strongly recommend it for managing pip installed modules. I use pyenv which also lets you manage multiple python versions if you wish.

    – Toby
    Jan 18 at 14:24











  • Possible duplicate of Python console_scripts doesn't work when pip install --user

    – phd
    Jan 18 at 15:39











  • stackoverflow.com/…

    – phd
    Jan 18 at 15:39











  • I am not using virtual environments, thanks for the suggestion @Toby.

    – Chris Woodruff
    Jan 18 at 16:04











  • This is very similar to that issue, @phd, but the accepted answer does not work for me (the answer itself is also similar to the link I posted above ). I'm happy to move conversation there anyway, to reduce clutter, however I feel it might be valuable to the community to have this question phrased separately, in awscli-specific terms.

    – Chris Woodruff
    Jan 18 at 16:06

















If you're not using virtual environments, I strongly recommend it for managing pip installed modules. I use pyenv which also lets you manage multiple python versions if you wish.

– Toby
Jan 18 at 14:24





If you're not using virtual environments, I strongly recommend it for managing pip installed modules. I use pyenv which also lets you manage multiple python versions if you wish.

– Toby
Jan 18 at 14:24













Possible duplicate of Python console_scripts doesn't work when pip install --user

– phd
Jan 18 at 15:39





Possible duplicate of Python console_scripts doesn't work when pip install --user

– phd
Jan 18 at 15:39













stackoverflow.com/…

– phd
Jan 18 at 15:39





stackoverflow.com/…

– phd
Jan 18 at 15:39













I am not using virtual environments, thanks for the suggestion @Toby.

– Chris Woodruff
Jan 18 at 16:04





I am not using virtual environments, thanks for the suggestion @Toby.

– Chris Woodruff
Jan 18 at 16:04













This is very similar to that issue, @phd, but the accepted answer does not work for me (the answer itself is also similar to the link I posted above ). I'm happy to move conversation there anyway, to reduce clutter, however I feel it might be valuable to the community to have this question phrased separately, in awscli-specific terms.

– Chris Woodruff
Jan 18 at 16:06





This is very similar to that issue, @phd, but the accepted answer does not work for me (the answer itself is also similar to the link I posted above ). I'm happy to move conversation there anyway, to reduce clutter, however I feel it might be valuable to the community to have this question phrased separately, in awscli-specific terms.

– Chris Woodruff
Jan 18 at 16:06












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54255776%2fawscli-install-on-mac-successful-then-bash-commands-fail%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54255776%2fawscli-install-on-mac-successful-then-bash-commands-fail%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Liquibase includeAll doesn't find base path

How to use setInterval in EJS file?

Petrus Granier-Deferre