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.9.0rc3.tar.gz
(10.0 MB
view hashes)
Built Distributions
Close
Hashes for grpcio-1.9.0rc3-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4fd6cced67ab647cb71c4e85794df366df9c19e0ccca533c4449a24daac1a2c |
|
MD5 | 7f7db14c1df30ff7eb18ad554cac9a0e |
|
BLAKE2b-256 | ccf49e2cecb24e7e3c5a2c6910c94c9aaf133fcb738360a3ccab9316f06bffcc |
Close
Hashes for grpcio-1.9.0rc3-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ce7dd0417000242351dd78a53dc2b055a2a47826d41f120f95eaac6848a6012 |
|
MD5 | 0a1fa6bfa41c7c5cfaaa5c3aca5cdd0d |
|
BLAKE2b-256 | 39902826221e4bf70777f5b96500da25427020c01a697b1fa574457f9b11e80d |
Close
Hashes for grpcio-1.9.0rc3-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c164ca1cafe829938b4ae094fecbe6b74f34379089e8b1e370586346e2028f61 |
|
MD5 | 2ab794dd7d3ce83ce0c955f19d27e1d0 |
|
BLAKE2b-256 | 65101c9c3dd2742abe3315d8d4f2ae19fdeabcfb7459239449b161b4e934dc48 |
Close
Hashes for grpcio-1.9.0rc3-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e007b581a32fb5b95b777039096026fed2c44350e2a7cd24152e3c44251f8ec5 |
|
MD5 | ebb9f50a66c216296dc877f82beb9199 |
|
BLAKE2b-256 | 04ed78340ae2d0958c63daca6d06c911564180d7504c8878dedded40639d2220 |
Close
Hashes for grpcio-1.9.0rc3-cp36-cp36m-macosx_10_7_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b638b6e4301a7aede5463731be5e4690cb75890b22631342589efe78af23a9ab |
|
MD5 | 1fcdabc0b724efe65082b520a7c7d272 |
|
BLAKE2b-256 | 6e92911b66019faa4280a1a59d34d39be8ecab029d48e390bbb01d75a3dcfa21 |
Close
Hashes for grpcio-1.9.0rc3-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 839208ac67956bd1f96327299e1f1f64c85602989eae550e98d19ead8f22d215 |
|
MD5 | 042a2e6d7ffa9f7e813fc6a71b6a87fa |
|
BLAKE2b-256 | a70970d5f32bf8e8ab2dba5d1158d73a0eabad2e87623dfac5352550cbb5e40d |
Close
Hashes for grpcio-1.9.0rc3-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 864e33fcec8523bd7042401f26fc4fcca4ce928686c7b954b8aeef308e021a96 |
|
MD5 | ff060f5634cfe7b507a8cf38751eb490 |
|
BLAKE2b-256 | 58371445fa7307c564f9f6b125a70094af7f3fbcd972d4329a09406ed74414aa |
Close
Hashes for grpcio-1.9.0rc3-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7204d94168c87c00594a3fcefec23dd31cdd053a59544d848f41f39831aeeb1 |
|
MD5 | bcdcb13affe1c575ee928e38f56449f6 |
|
BLAKE2b-256 | 0aa60bd173e5079eedaf2ee0dccd4ec17ff489eff9749f9437eb91974ae9a619 |
Close
Hashes for grpcio-1.9.0rc3-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae211da27a4fe0dd5530de92cbd349f7b9d6f8fe078723b17b0a3724fb12aa7a |
|
MD5 | 8d6ac622ee95cef1467aca02fed9a799 |
|
BLAKE2b-256 | 9bb9ac94fef60e238704a8d7aa433ec29ba4de991452803fe1db4fbbb1cf456f |
Close
Hashes for grpcio-1.9.0rc3-cp35-cp35m-macosx_10_7_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e3eda56f2d92c361eddcba6820a184315d1f9817ee3619b3f36650dc0e05c9a |
|
MD5 | f113368628f411c45814aff107f0c14e |
|
BLAKE2b-256 | 065c8c2233368d40b2845b7afc6ec1bda4bc76516996bb214e94bb3ebc08f64f |
Close
Hashes for grpcio-1.9.0rc3-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aac78c6612149823efdb34a82d4921904c2b1968674f022ff3c4453b5e45b219 |
|
MD5 | df39355172bc16f3c3a995005fb62c38 |
|
BLAKE2b-256 | 40e66e3d725c4b54d78dbe20d46f603fe407c38d875ac39e13ee2d6286d44732 |
Close
Hashes for grpcio-1.9.0rc3-cp34-cp34m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2792297251b0784b3c25364d3e6c7dc947bdf962c638bc8e3a1065b9590edb80 |
|
MD5 | abab92283304e15f5c27678b32ca1259 |
|
BLAKE2b-256 | 65ed53c50be0c6847f90957bca59be9421d29c4abfa7002829c903d62460010e |
Close
Hashes for grpcio-1.9.0rc3-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97d785920866901e3f7c4c91168871b265200fc5b7b7d60a0a5010db31e66dad |
|
MD5 | b59a439ac46680f63534cc526b1a5507 |
|
BLAKE2b-256 | aa2865469cecb6e05e1e632ce0b7193f8309bce309c6018f3b90baf8d2980579 |
Close
Hashes for grpcio-1.9.0rc3-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8690439c5d64d379219f0555ba9f824d0c96e11205b6dbffe88e60a649724408 |
|
MD5 | a58bd1f9b388b0337922371345820c64 |
|
BLAKE2b-256 | 8b3ba49d8569f6676c982e20749b58f8e41d40728f3e5d51e5abdc33a3d0a5ca |
Close
Hashes for grpcio-1.9.0rc3-cp34-cp34m-macosx_10_7_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be1e47545b782ca2cf1486e56c50591749fba250914e2585395dbc8bfef5ef3e |
|
MD5 | d300ac4f641193354948b869523deca6 |
|
BLAKE2b-256 | 8b2a091be278e1e494e072c031dd464d21d2f1148bd77851f72a3a9dc0ab0a47 |
Close
Hashes for grpcio-1.9.0rc3-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 906b729564ead5f275b62f7f5fa1eaf4668aaee75336002913aa6d0db4c675cb |
|
MD5 | e835d18821e23ca2bcd7f13e0d10197c |
|
BLAKE2b-256 | e2a275612f223333560f86a8c078137d0eab95953a9c1a958ac1fde3b5ea4f7d |
Close
Hashes for grpcio-1.9.0rc3-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2a580377071b66f05cbd6d5be94dfa7512f30a79d9d2870cfb256d131c306ab |
|
MD5 | e19e3513b1ce90a21e3cb969ea3acc99 |
|
BLAKE2b-256 | b7286e9636323c4506a80ca20031117f515727bcf0ae15feced02fccd5a9ed0c |
Close
Hashes for grpcio-1.9.0rc3-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4516bd1e528421f96635a7cd326da9bb4a011f2902eec5bb3f55f34ef0315331 |
|
MD5 | ba0b05114ba3826ebd879cd2cf55759a |
|
BLAKE2b-256 | 8c81cb5a7c83819a4347e225e2f3dab019b36190d02913610042036e6c6e1300 |
Close
Hashes for grpcio-1.9.0rc3-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 427b519737f026c4601d414454dd0afab3d07307d9fe263f2b6dabb31bd9aeaf |
|
MD5 | 58196156ce91e088b0ac639b01f005e9 |
|
BLAKE2b-256 | 20a1d8d1e4d71a3a03420d0f64ed3400877daf34aec355e942e8134171b58463 |
Close
Hashes for grpcio-1.9.0rc3-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b219b261fea1b88eef3682d6d10c2f63180fc4bbbc91446c75b9b5f24a70fd49 |
|
MD5 | 60fe6f256d253c25477d04d5dc1797ff |
|
BLAKE2b-256 | 44c567782673ff96e6d7c52ef60ce58b0d798251ea288339c2f5db0a35d7ac40 |
Close
Hashes for grpcio-1.9.0rc3-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54cb551d60eabbb53fd2831f35f5c5558452dd61095fca5ee67cbdd34598d5bc |
|
MD5 | d05010a4fd927fb6bcfe4dc41a86ae5f |
|
BLAKE2b-256 | 9640881def3f469c6ae884926303ff799d1a84a88904e21f1fde6d422e41ec9f |
Close
Hashes for grpcio-1.9.0rc3-cp27-cp27m-macosx_10_10_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f2c44dd3a42c9a033b9d2261e299f353f5b8c8b6d9b4222f8c4ed3b4d9887d3 |
|
MD5 | 6148f2dcf41bb694d3ac932567979fa7 |
|
BLAKE2b-256 | 3cfcfbca32b0e2227ab19cfe6d0cc6c9ada5e4241e73c42e24d876068a34e6b1 |