Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Using Ubuntu 24.04, how to fix issue with latest installed but OS will not find #7808

Open
weisisheng opened this issue Dec 20, 2024 · 2 comments
Labels
stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at.

Comments

@weisisheng
Copy link

Description:

Latest version can not be found. Can not use pip install due to design chasnge by ubuntu seen below:

pip install --upgrade aws-sam-cli
error: externally-managed-environment

Steps to reproduce:

Install using steps used in the docs

Have had SAM working | running on system for a few years. Installed latest version without errors. Restarted terminal and computer.

Observed result:

which sam
/home/foobar/.local/bin/sam

sam --version
SAM CLI, version 1.122.0

Expected result:

sam --version

SAM CLI, version 1.132.0

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: ubuntu 24.04
  2. sam --version: 1.22
  3. AWS region: us-east-1
# Paste the output of `sam --info` here

Add --debug flag to command you are running

@weisisheng weisisheng added the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Dec 20, 2024
@weisisheng
Copy link
Author

Grubbed around far and wide on help forums, etc and can not find solution

@roger-zhangg
Copy link
Member

Hi @weisisheng thanks for reporting this issue. This error seems related to the way SAM CLI was originally installed. Did you remember how SAM CLI was installed on this machine in the first place?

If it's installed via pip in the first place, you can refer to the doc here and install & update it in a virtual environment to avoid this error

If it's installed by installer, please see upgrading instructions

Let me know if these solves it. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at.
Projects
None yet
Development

No branches or pull requests

2 participants