HTTP/2-based RPC framework
Project description
gRPC Python
===========
Package for gRPC Python.
Installation
------------
gRPC Python is available for Linux, macOS, and Windows.
>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 :code:`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 :code:`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 :code:`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 :code:`python-dev`).
::
$ export REPO_ROOT=grpc # REPO_ROOT can be any directory of your choice
$ git clone -b $(curl -L https://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** :code:`pkg_resources.VersionConflict` **when I try to install
grpc**
This is likely because :code:`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:
:code:`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
===========
Package for gRPC Python.
Installation
------------
gRPC Python is available for Linux, macOS, and Windows.
>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 :code:`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 :code:`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 :code:`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 :code:`python-dev`).
::
$ export REPO_ROOT=grpc # REPO_ROOT can be any directory of your choice
$ git clone -b $(curl -L https://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** :code:`pkg_resources.VersionConflict` **when I try to install
grpc**
This is likely because :code:`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:
:code:`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.10.1rc1.tar.gz
(14.0 MB
view hashes)
Built Distributions
Close
Hashes for grpcio-1.10.1rc1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 590a4aca51e6d3a91e9e99759efcc20a4624a4b2c09f59fe9bde8e14d1c2a309 |
|
MD5 | 05ea6ead44447c76896c7ef2670d5cae |
|
BLAKE2b-256 | 973bc0903c208e0138415645d545009b0e46aa9d2b25ba74eca6bc051372bf9b |
Close
Hashes for grpcio-1.10.1rc1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 083719976e387bd1f6c06774895a3b2362f84e0a6a29932031cfc9b244f0be79 |
|
MD5 | ee165756f57e22b7d87b69aefba9c5c1 |
|
BLAKE2b-256 | 316b85784167246d405dae4f7a5f1a6846b89b069e3f3aeea1306f394d546b91 |
Close
Hashes for grpcio-1.10.1rc1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa453c175c4e72f1c263adff69497b52752c0cd506ba7964119d443928d67488 |
|
MD5 | a2fed09f66357e7a7484dd45ffee871b |
|
BLAKE2b-256 | 761815191aa18a4fe4431659cf3b72c12b888141f1e9620305a462c37bff3303 |
Close
Hashes for grpcio-1.10.1rc1-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d33eadba2bd5fc161976eaee4326edf750a11e5b22235cc641995b16edc27a05 |
|
MD5 | de030d28ef76eab0b2c69dbc34275cc9 |
|
BLAKE2b-256 | 43b8379c2108abc1fbda023914c986c631e398e6cb2576977299685cb9ec2db9 |
Close
Hashes for grpcio-1.10.1rc1-cp36-cp36m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48f1146b9ff1c72dfe03e984adb92c59c6ff05d857f54d51f706c298541c9612 |
|
MD5 | b36da1f4561bf7ad40de309ef5b38c18 |
|
BLAKE2b-256 | 6d8e1c31323e1413adcaaaffd2e30aa343450792fcf15ce9ebb1d05ec5c8dcbf |
Close
Hashes for grpcio-1.10.1rc1-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3acad288ae8142a49f4bc9e5c08b01105dbaeb2da45e6b2131be94ca332b9fe |
|
MD5 | 0a613690ff9d3a77b8fbeffd69b16875 |
|
BLAKE2b-256 | dbac4b0a183fcb57d45f133d426127051a47394fde5268957aa76a2154190aa5 |
Close
Hashes for grpcio-1.10.1rc1-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10c073272ba5f23648cc1e739abceb2ce69b2f44faf2a6964cb97b7a47736f9e |
|
MD5 | 574f7ce03f5e688dbffde11687cffec1 |
|
BLAKE2b-256 | 991310c29c58ddef085551bfc95a5259414925f7d168fdb0c4181d988a523bbc |
Close
Hashes for grpcio-1.10.1rc1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88ac066057b0bf4a6c999772ca57dcbd0e51d3c5d9adc17a6b8a7eb0ed34e0d8 |
|
MD5 | b7e7721c5a5cc0dc9c1dd6ee80575dfc |
|
BLAKE2b-256 | b73fa4b834bbcd02eda13b641f2c4c8fdd521a176a6b4b1b930e488370758267 |
Close
Hashes for grpcio-1.10.1rc1-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ca6bda5bad13d788d3c6504aaff43eeaffb0508a75209a4eaaa2ffde09ffbe9 |
|
MD5 | 687e5191978d83d18da25b31d4dfd0bb |
|
BLAKE2b-256 | e264d07d63babe25c5cc5e3cbb1c4cec23323637912b4e11f8aae33176172b27 |
Close
Hashes for grpcio-1.10.1rc1-cp35-cp35m-macosx_10_7_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a99db60e187c5f04e8025a08ecba0dd1c7bed09d85f949d9d9fc4cfda1f99aff |
|
MD5 | 9aad017a531587582508eb6643eaafed |
|
BLAKE2b-256 | 1cc85f61efb32b460a77592a3277dce4494fe3de9ae0cea90cf4063b255dfc8f |
Close
Hashes for grpcio-1.10.1rc1-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 592d9ed568da23ad8f204f47d3e77617e6d47b955416420c23b48b093913942c |
|
MD5 | 461f5ccee572edfe04d8fb3bc67ccd5d |
|
BLAKE2b-256 | e783489572a785628254e2e44b4957dded14936352815c231a5cb0b684ffc21a |
Close
Hashes for grpcio-1.10.1rc1-cp34-cp34m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fab0406b19495e07d147c81d712e86c9c5d6b6d9b7339bbcca6d83b9bd02a996 |
|
MD5 | 73ba8251d5d2b49d151b181179b3b6a3 |
|
BLAKE2b-256 | 9bb8f18ece15a3603796fa9307ca157b7aa3f25edcb9a484d14ded3b80483999 |
Close
Hashes for grpcio-1.10.1rc1-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 713be67d1a9cdd1b60a70cceaa7472bb4900165d77bf1f8e0259ffe44f061bc1 |
|
MD5 | 0c109b9d662772bbb71e88f15dcc1f03 |
|
BLAKE2b-256 | 2dc0bff40df61e3807e31218c87f839ee4cf26b06131db8bebc4334e25ee1831 |
Close
Hashes for grpcio-1.10.1rc1-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78a7ff5165d56a1879014f9356f94c60c9148eceeb5cc6eef6484a8b65ac564c |
|
MD5 | 21e367200a4b9c9cd9113abe80768ad9 |
|
BLAKE2b-256 | 1137676232e08271e356851997ed613d47ba9d2f4610e2026b811a3dc442e39e |
Close
Hashes for grpcio-1.10.1rc1-cp34-cp34m-macosx_10_7_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99212c62ce9f771a32db6487cc5d80e3f07b013e83fe39f90c470d240550b431 |
|
MD5 | a000e84a1400c3c33d2028522c90b737 |
|
BLAKE2b-256 | a6399d48e037b68fd0d5150cf1e6d64c4c2f7e0a9759c7c9fadf221e4c7799d8 |
Close
Hashes for grpcio-1.10.1rc1-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70f38ea8838474eecae0b8609478c2510d38d30b10348a6eac1d1e13e8c05be8 |
|
MD5 | 673789b7e23fe84a3a0837b28bdb92f3 |
|
BLAKE2b-256 | 070a46030bf83896472903ab8f1cd1665e3c5b10845274ec5e8d7730a5853042 |
Close
Hashes for grpcio-1.10.1rc1-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b64bcdbdc4277159687317b6e8c823d7deb0b9bef4a6c01e74820eec05290f2 |
|
MD5 | d73b3db12933d411aac0664c5df22d27 |
|
BLAKE2b-256 | d955a94a99dd5297be844cb691bb232e557ede856aed959d5380eef655ef0b1b |
Close
Hashes for grpcio-1.10.1rc1-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50c63ca42ef4cc004c4cfec788be8c6f92dbeb5dee8c66883500384ef42c9663 |
|
MD5 | 02f0cadb2263ad8dea8bc1d9acb2a1f3 |
|
BLAKE2b-256 | 64776d683ad93f5429d2f6473788b7d1e974369e25256ffc01b71fe6433d7788 |
Close
Hashes for grpcio-1.10.1rc1-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dd97ea90a4183a3eb4f782c98ddaf893cceec5e996e0dd70525017374751cdc |
|
MD5 | c02db4a82bd9378dca14f9867d301225 |
|
BLAKE2b-256 | ce33eccb959414c99df39296b664695c04f7d71f8ff4bddff8515b5a7a4e4f05 |
Close
Hashes for grpcio-1.10.1rc1-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4690153ae37ae404d8289409a952525a35b1a270ce076b268d0a88b232bb1618 |
|
MD5 | 98f0073cb4efc1500546077f71d03c73 |
|
BLAKE2b-256 | f1ec1f3fee9fa617451a9d8e6f86ae95ac62af0b74f8991727a491f77987cedd |
Close
Hashes for grpcio-1.10.1rc1-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2442c7af55375dacd6667b7c9a55e7d2a024ecfd987218b4c0df7e267e317b6d |
|
MD5 | 21b63c4a2df90db54b0bfc984f38922d |
|
BLAKE2b-256 | 5a037a503ac6f3346a09cae5554ede6262aa405325c0f786ff9904e744d05df0 |
Close
Hashes for grpcio-1.10.1rc1-cp27-cp27m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2567fa2b77d647d921b4de95d6c14c464cb140d39359e5b566fec869f4a6d39 |
|
MD5 | 6748fd936c1eaca6444e93490ecd7352 |
|
BLAKE2b-256 | 4dd8619a1b93ef73b31bf2f5ece254d3c685f7890dc9455f50346a0e443f3703 |