Skip to content

Can not install langchain-google-vertexai in Container with linux/arm64 #892

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

Open
p13rr0m opened this issue Apr 26, 2025 · 0 comments
Open

Comments

@p13rr0m
Copy link

p13rr0m commented Apr 26, 2025

Issue

Can not install langchain-google-vertexai in Container with linux/arm64.

This doesn't work:

docker run -it --rm --platform="linux/arm64" python:3.12-slim-bookworm pip install 'langchain-google-vertexai==2.0.21'

This works:

docker run -it --rm --platform="linux/amd64" python:3.12-slim-bookworm pip install 'langchain-google-vertexai==2.0.21'

Error Message

  gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -c _configtest.c -o _configtest.o
  failure.
  removing: _configtest.c _configtest.o
  building 'bottleneck.reduce' extension
  creating build/temp.linux-aarch64-cpython-312/bottleneck/src
  gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/tmp/pip-build-env-8n4_i0tl/overlay/lib/python3.12/site-packages/numpy/_core/include -I/usr/local/include/python3.12 -Ibottleneck/src -c bottleneck/src/reduce.c -o build/temp.linux-aarch64-cpython-312/bottleneck/src/reduce.o -O2
  error: command 'gcc' failed: No such file or directory
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for bottleneck

Reason

The problem is that bottleneck is not supported on ARM64 (see pydata/bottleneck#394). However, there are MacOS ARM64 wheels on PyPI (see https://pypi.org/project/Bottleneck/#files).

@langcarl langcarl bot added the investigate label Apr 26, 2025
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

1 participant