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

pip install Error: no matching distribution ARM-based AWS Lambda environment #110

Open
phitoduck opened this issue Sep 18, 2024 · 0 comments

Comments

@phitoduck
Copy link

phitoduck commented Sep 18, 2024

Hi! Fun tool! I've been playing with it today and yesterday, and am showing it on a live stream next Tuesday.

I want to run sqlite-vec in an AWS lambda function. I was able to get it to install in a non-ARM function docker image, but it won't install in the ARM-based version.

That's sad because ARM-based AWS lambda runtimes are a good bit cheaper (and I think faster).

Anyway, here are some commands to reproduce it:

    # fails on ARM
    docker run --rm \
        --entrypoint "/bin/bash" \
        --platform linux/arm64 \
        public.ecr.aws/lambda/python:3.11 \
            -c "pip install --upgrade pip && \
            pip install sqlite-vec"

    # succeeds on x86
    docker run --rm \
        --entrypoint "/bin/bash" \
        --platform linux/amd64 \
        public.ecr.aws/lambda/python:3.11 \
            -c "pip install --upgrade pip && \
            pip install sqlite-vec"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant