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

Possible to update pip in the public.ecr.aws/sam/build-python3.6 build image? #11

Closed
camlow325 opened this issue Jun 17, 2021 · 1 comment

Comments

@camlow325
Copy link

camlow325 commented Jun 17, 2021

The version of pip installed in the public.ecr.aws/sam/build-python3.6 image currently is 18.1. As mentioned in this psycopg2 project issue, older versions of pip (which include 18.1) fail to install the latest psycopg2 versions (2.9 or later).

If we upgrade to the latest pip version, 21.1.2, we are able to install the later psycopg2 versions without issues. Would it be possible to upgrade the default pip version in the public.ecr.aws/sam/build-python3.6 image to the latest version?

@hoffa
Copy link

hoffa commented Dec 29, 2021

You can pip install --upgrade pip for your use case, but I'd be somewhat wary of doing that by default for all consumers, as it's essentially upgrading the system pip (provided by the python3-pip Amazon Linux package) outside the package manager. Also, Python 3.6 is EOL, so it would be beneficial to move a more recent release, which include more recent pip releases as well.

@hoffa hoffa closed this as completed Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants