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

安装serving失败, ERROR: Could not build wheels for grpcio, grpcio-tools #1982

Open
beike6688 opened this issue Jan 2, 2024 · 3 comments

Comments

@beike6688
Copy link

beike6688 commented Jan 2, 2024

环境:
windows10 使用 Docker Desktop虚拟Linux
docker镜像: paddlepaddle/paddle:2.6.0
python版本: python3.10.13

无法成功安装PaddleServing

wget https://paddle-serving.bj.bcebos.com/test-dev/whl/paddle_serving_server_gpu-0.9.0.post102-py3-none-any.whl
pip3 install paddle_serving_server_gpu-0.9.0.post102-py3-none-any.whl

报错, 0.8.3版也是一样的报这个错误。

ERROR: Failed building wheel for grpcio-tools
Failed to build grpcio grpcio-tools
ERROR: Could not build wheels for grpcio, grpcio-tools, which is required to install pyproject.toml-based projec

安装时第一次失败的地方:

     distutils.errors.CompileError: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for grpcio
  Building wheel for grpcio-tools (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for grpcio-tools (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [2056 lines of output]
      <string>:21: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
      running bdist_wheel
      running build
      running build_py
      creating build

第二次报错:

x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAVE_PTHREAD=1 -I. -Igrpc_root -Igrpc_root/include -Ithird_party/protobuf/src -I/usr/include/python3.10 -c third_party/protobuf/src/google/protobuf/descriptor.pb.cc -o build/temp.linux-x86_64-cpython-310/third_party/protobuf/src/google/protobuf/descriptor.pb.o -std=c++11 -fno-wrapv -frtti
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for grpcio-tools
Failed to build grpcio grpcio-tools
ERROR: Could not build wheels for grpcio, grpcio-tools, which is required to install pyproject.toml-based projects
Copy link

github-actions bot commented Jan 2, 2024

Message that will be displayed on users' first issue

@magicleo
Copy link

同问,解决了吗?

@heavengate
Copy link

看着是grpcio编译失败,pip install -r requirements.txt或者pip install --upgrade grpcio试下呢

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

3 participants