Skip to main content

HTTP/2-based RPC framework

Project description

Package for gRPC Python.

Installation

gRPC Python is available for Linux, Mac OS X, and Windows running Python 2.7.

From PyPI

If you are installing locally…

$ pip install grpcio

Else system wide (on Ubuntu)…

$ sudo pip install grpcio

If you’re on Windows make sure that you installed the pip.exe component when you installed Python (if not go back and install it!) then invoke:

$ pip.exe install grpcio

Windows users may need to invoke pip.exe from a command line ran as administrator.

n.b. On Windows and on Mac OS X one must have a recent release of pip to retrieve the proper wheel from PyPI. Be sure to upgrade to the latest version!

From Source

Building from source requires that you have the Python headers (usually a package named python-dev).

$ export REPO_ROOT=grpc  # REPO_ROOT can be any directory of your choice
$ git clone -b $(curl -L http://grpc.io/release) https://github.com/grpc/grpc $REPO_ROOT
$ cd $REPO_ROOT
$ git submodule update --init

# For the next two commands do `sudo pip install` if you get permission-denied errors
$ pip install -rrequirements.txt
$ GRPC_PYTHON_BUILD_WITH_CYTHON=1 pip install .

You cannot currently install Python from source on Windows. Things might work out for you in MSYS2 (follow the Linux instructions), but it isn’t officially supported at the moment.

Troubleshooting

Help, I …

  • … see a pkg_resources.VersionConflict when I try to install grpc

    This is likely because pip doesn’t own the offending dependency, which in turn is likely because your operating system’s package manager owns it. You’ll need to force the installation of the dependency:

    pip install --ignore-installed $OFFENDING_DEPENDENCY

    For example, if you get an error like the following:

    Traceback (most recent call last):
    File "<string>", line 17, in <module>
     ...
    File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 509, in find
      raise VersionConflict(dist, req)
    pkg_resources.VersionConflict: (six 1.8.0 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.10'))

    You can fix it by doing:

    sudo pip install --ignore-installed six
  • … see the following error on some platforms

    /tmp/pip-build-U8pSsr/cython/Cython/Plex/Scanners.c:4:20: fatal error: Python.h: No such file or directory
    #include "Python.h"
                    ^
    compilation terminated.

    You can fix it by installing python-dev package. i.e

    sudo apt-get install python-dev

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

grpcio-0.15.0.tar.gz (5.3 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

grpcio-0.15.0-cp27-cp27mu-manylinux1_x86_64.whl (4.8 MB view details)

Uploaded CPython 2.7mu

grpcio-0.15.0-cp27-cp27m-win_amd64.whl (2.3 MB view details)

Uploaded CPython 2.7mWindows x86-64

grpcio-0.15.0-cp27-cp27m-win32.whl (2.3 MB view details)

Uploaded CPython 2.7mWindows x86

grpcio-0.15.0-cp27-cp27m-manylinux1_x86_64.whl (4.8 MB view details)

Uploaded CPython 2.7m

grpcio-0.15.0-cp27-cp27m-macosx_10_10_intel.whl (2.2 MB view details)

Uploaded CPython 2.7mmacOS 10.10+ Intel (x86-64, i386)

File details

Details for the file grpcio-0.15.0.tar.gz.

File metadata

  • Download URL: grpcio-0.15.0.tar.gz
  • Upload date:
  • Size: 5.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for grpcio-0.15.0.tar.gz
Algorithm Hash digest
SHA256 5ba2a644dd86d41987add2ecdbdfd6ce564cc8ca3f1deac4f73109da84b73606
MD5 ca43a6b84a67ccdd7dd96eafb67fc0eb
BLAKE2b-256 d1d79bf18818763e0f7debe6706705f61ce89aa5636d93083776a6167320d573

See more details on using hashes here.

File details

Details for the file grpcio-0.15.0-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for grpcio-0.15.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e21cb6c02c979bbd56175b5faafc60180a227372a3770823d4e168e9eefb1037
MD5 e44b9460bfd4a513847d138ddf406ed7
BLAKE2b-256 87d7c6897adc043a4e5ef3fe39110f06c4ce6950a21ffb40f79c0dd443685615

See more details on using hashes here.

File details

Details for the file grpcio-0.15.0-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for grpcio-0.15.0-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 69688a1a2a4dea193231e6478725a6f6fc32fd877352c5876389743fc3bf2aa3
MD5 d8d1e5e6de7a88c971992067965a6293
BLAKE2b-256 2fdaa3ad69fedfdbfb37081691076ba028029c414495abcde83d36439c5e2cdc

See more details on using hashes here.

File details

Details for the file grpcio-0.15.0-cp27-cp27m-win32.whl.

File metadata

File hashes

Hashes for grpcio-0.15.0-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 4934e4a9af7da80eba8ccdefcc8d949c89487068a9e17897de0cce0434d7a5ed
MD5 caeef1c66bc2cce34dff789fcbd30905
BLAKE2b-256 03e07a1d6c4c4488ce142a53cc08678ce2ac94751f9d984c6b663f1b4a78265a

See more details on using hashes here.

File details

Details for the file grpcio-0.15.0-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for grpcio-0.15.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4e008f5269c93e656e5fc4fab30f6a4c68327be75249c89afbdbcd119c048ad5
MD5 cea69e420a4e6b39f5df27f59dcdc91c
BLAKE2b-256 ec88994eacb9c766da7bea4dfde2aaa957bc90f7603816f2284a987d164ae7ad

See more details on using hashes here.

File details

Details for the file grpcio-0.15.0-cp27-cp27m-macosx_10_10_intel.whl.

File metadata

File hashes

Hashes for grpcio-0.15.0-cp27-cp27m-macosx_10_10_intel.whl
Algorithm Hash digest
SHA256 c5d1a59ecf6dcb6ffb8b67d784183e4006eceafd0ea6acdbe67bdee9983837f4
MD5 5a42962656c9c2d6b987f7226937ee89
BLAKE2b-256 cbf7972a0872d82fe774923a648af016037f94c9ed27a087cc0dc72c30c976ea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page