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-1.0.0rc1.tar.gz (5.2 MB view details)

Uploaded Source

Built Distributions

grpcio-1.0.0rc1-cp34-cp34m-win32.whl (1.1 MB view details)

Uploaded CPython 3.4m Windows x86

grpcio-1.0.0rc1-cp34-cp34m-manylinux1_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.4m

grpcio-1.0.0rc1-cp34-cp34m-manylinux1_i686.whl (4.4 MB view details)

Uploaded CPython 3.4m

grpcio-1.0.0rc1-cp34-cp34m-macosx_10_7_intel.whl (2.4 MB view details)

Uploaded CPython 3.4m macOS 10.7+ intel

grpcio-1.0.0rc1-cp27-cp27mu-manylinux1_x86_64.whl (4.7 MB view details)

Uploaded CPython 2.7mu

grpcio-1.0.0rc1-cp27-cp27mu-manylinux1_i686.whl (4.3 MB view details)

Uploaded CPython 2.7mu

grpcio-1.0.0rc1-cp27-cp27m-win_amd64.whl (1.0 MB view details)

Uploaded CPython 2.7m Windows x86-64

grpcio-1.0.0rc1-cp27-cp27m-win32.whl (1.1 MB view details)

Uploaded CPython 2.7m Windows x86

grpcio-1.0.0rc1-cp27-cp27m-manylinux1_x86_64.whl (4.7 MB view details)

Uploaded CPython 2.7m

grpcio-1.0.0rc1-cp27-cp27m-manylinux1_i686.whl (4.3 MB view details)

Uploaded CPython 2.7m

grpcio-1.0.0rc1-cp27-cp27m-macosx_10_10_intel.whl (2.1 MB view details)

Uploaded CPython 2.7m macOS 10.10+ intel

File details

Details for the file grpcio-1.0.0rc1.tar.gz.

File metadata

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

File hashes

Hashes for grpcio-1.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 ffa426bd9e06294e085863e4c7831a3b19821f98197292483e6bf528f122a8db
MD5 ce2462a64aa86670696a50c6d947d5e6
BLAKE2b-256 3f81b14dc4e143d1eb0efabb0c8a4d88fafc6798d6392e26867f4e45a44d617a

See more details on using hashes here.

File details

Details for the file grpcio-1.0.0rc1-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for grpcio-1.0.0rc1-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 86d93bbdec28ed219c46a8385fe5868ba50d6927f5a745e80744cec979a5e2e3
MD5 7711b3e0a00d135f48dea338a32b9619
BLAKE2b-256 9c33727bd33a286dbf3c86943c32987980231d5035fe201af4ba1ccd26ce92b3

See more details on using hashes here.

File details

Details for the file grpcio-1.0.0rc1-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for grpcio-1.0.0rc1-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d25e957981b3d370ed2918dff1752835eed37933b11c2e51d35525f663ee2d7a
MD5 b876d928e43f62d224b5fdb13ead85bc
BLAKE2b-256 28389cb489e38c7fc897dadaf7b594e1f318aaf00b98a4f536ab82f12d4c2944

See more details on using hashes here.

File details

Details for the file grpcio-1.0.0rc1-cp34-cp34m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for grpcio-1.0.0rc1-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 1e2bf3b89bf1810e4577fd3590fc04136cabb278efdf539d7f9bff79a54b13ea
MD5 b9b6d22755bceca8c484d2ec36e79c38
BLAKE2b-256 a50715562d7a935cc0efdd487084c1f5a70da8d108f0455fa4f3da161e6533b9

See more details on using hashes here.

File details

Details for the file grpcio-1.0.0rc1-cp34-cp34m-macosx_10_7_intel.whl.

File metadata

File hashes

Hashes for grpcio-1.0.0rc1-cp34-cp34m-macosx_10_7_intel.whl
Algorithm Hash digest
SHA256 769c3b0958c4bffdff647e700be7650972c59b11409a6b5a5bc1400e98b81e11
MD5 25d6b3b31c13de247440baacf0d41711
BLAKE2b-256 907c58b5a38d4a2964d4dd3b5046281f827e6f60c732d4e4164498bacb78a274

See more details on using hashes here.

File details

Details for the file grpcio-1.0.0rc1-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for grpcio-1.0.0rc1-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 aefa7a45cf98758c7054204f077d5ac2861d823a10c8e8cdb8cc2a76c7719e1c
MD5 2d1f32b24ea0aab3e023d545136c62e9
BLAKE2b-256 f2b21bae4f2e2d37e3eb424182f4fb293000e4545fcaa8f7121c7f53dad86f00

See more details on using hashes here.

File details

Details for the file grpcio-1.0.0rc1-cp27-cp27mu-manylinux1_i686.whl.

File metadata

File hashes

Hashes for grpcio-1.0.0rc1-cp27-cp27mu-manylinux1_i686.whl
Algorithm Hash digest
SHA256 d86abfa6db661db3088b8957d3d8544252c82211d5485d8872a43a5c45731ba1
MD5 9d8b713d5d1c02e7a4bcebfc53733b09
BLAKE2b-256 01fa060656c1c6ab4cdf23b62fff2d0377c41ba1da1e365f1bb25ef17a0b60a3

See more details on using hashes here.

File details

Details for the file grpcio-1.0.0rc1-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for grpcio-1.0.0rc1-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 5531013eac5204feca11c30f08418a39ea0f6b11a7a4390bd78400c6837f1043
MD5 63b91288b87028d979d982229c86db16
BLAKE2b-256 24ea789fd670134702a118c11f1111fd6bb8b262b405aa96575230d384f637ce

See more details on using hashes here.

File details

Details for the file grpcio-1.0.0rc1-cp27-cp27m-win32.whl.

File metadata

File hashes

Hashes for grpcio-1.0.0rc1-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 c7761df495f6bb8784d68a972acc243db27ef3cad5a217aca270f97a8bfb185c
MD5 a595801ae768ae4870837c450ec554b7
BLAKE2b-256 a5a493278af2f526c642f81cbb9257da0c21eef1a5ba730e0c6843d05af6a471

See more details on using hashes here.

File details

Details for the file grpcio-1.0.0rc1-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for grpcio-1.0.0rc1-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 16996636b68bb19a38ddb54bc4c00efe4676050c7d101615adef934690cec6b9
MD5 832837591c9673b1b8a26abf303d61bb
BLAKE2b-256 a3a25dd22367166aac60f98228b21e49baf2c3dcc2620f71195af0028d1d761c

See more details on using hashes here.

File details

Details for the file grpcio-1.0.0rc1-cp27-cp27m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for grpcio-1.0.0rc1-cp27-cp27m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 58ce6e98aaf5e63460667125da355dde1c8e6a0b12c2e548e81e45e425a83bd4
MD5 29f8abcfd2af187029d4817801b31a27
BLAKE2b-256 bde44ce736f0b208d8d9f08a8b19fd89826e4dffda6288d0e8e107c7bf09041d

See more details on using hashes here.

File details

Details for the file grpcio-1.0.0rc1-cp27-cp27m-macosx_10_10_intel.whl.

File metadata

File hashes

Hashes for grpcio-1.0.0rc1-cp27-cp27m-macosx_10_10_intel.whl
Algorithm Hash digest
SHA256 1b7bb95ed013a69f00de9cdfc1215cc099ea3c901149e10ca73aae1008380c90
MD5 47113dd4b813b7980b27bfa623bb27e8
BLAKE2b-256 668c9e314c57d8730e1c5d3033ad4f30823fd0a3654ab80b40eb11803e91b5ec

See more details on using hashes here.

Supported by

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