Unable to install grpcio using pip install grpcio

后端 未结 2 890
面向向阳花
面向向阳花 2021-02-07 03:46

I am getting error while installing grpcio using pip install grpcio on my windows machine.I read here - https://github.com/grpc/grpc/issues/17829 that it may be due to error in

相关标签:
2条回答
  • 2021-02-07 04:40

    First, upgrade pip

    pip3 install --upgrade pip
    

    Then, update the setup tools:

    python3 -m pip install --upgrade setuptools
    

    At last, install grpcio using :

    pip3 install --no-cache-dir  --force-reinstall -Iv grpcio==<version_number>
    
    0 讨论(0)
  • 2021-02-07 04:46

    I ran into same issue using python 3.7 with setuptools is 41.0.1 while installing package that includes building wheel for gracio ... Building wheel for grpcio (setup.py) ... error

    warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
    src/python/Gracie/grpc/_cython/cygrpc.cpp:1343:14: fatal error: 'cstdlib' file not found
        #include <cstdlib>
                 ^~~~~~~~~
    1 warning and 1 error generated.
    

    Could NOT find a way to resolve above, but I tried with another environment with Python 3.6.x with same setuptools 41.0.1. Somehow "setup" found the prebuilt wheel for gracio (i.e. grpcio==1.11.0), and got through setup.

    0 讨论(0)
提交回复
热议问题