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.8.4.tar.gz
(10.0 MB
view hashes)
Built Distributions
Close
Hashes for grpcio-1.8.4-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea4195f7d8f4e710e794398ec45f174097ea0db3c76ec970718128ec1a39f3e8 |
|
MD5 | 7e2b16473c8ec69b479290bc7a83eff1 |
|
BLAKE2b-256 | 3ee1c39aa791e45743f41b7d6b777b2e603c165b2d8cd9351f3c2cba0fcfe1fa |
Close
Hashes for grpcio-1.8.4-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3644545abeadc24835416b6aea3c3f77cf80125492c5645b3ba0e5cbc1735a21 |
|
MD5 | d0da7050ebcdf43fd66faac699502504 |
|
BLAKE2b-256 | 8fc0a7a7998bd97a9c88c599d4901e73c4ab571a82cdf3e170cdf3ddba800e20 |
Close
Hashes for grpcio-1.8.4-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2283678f34814c4fcdce51242e0f4fc6e38008d34b0184b83f0b3ff400a5624 |
|
MD5 | 0cbfa61b42947e4e416263bc089753dd |
|
BLAKE2b-256 | fd7994c5c43484f74df15794b964407e5754e2d184c95a5a549adc918948cf11 |
Close
Hashes for grpcio-1.8.4-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f046c10b678761d65d80f78095576d8f550c1fe7462f036cb08538bb22e19ed3 |
|
MD5 | feb85e3eeee88c9877e5b36a6193c622 |
|
BLAKE2b-256 | e3e7000bd624c12200ad28d03fbaddccf7ba60c3b2a6dd2d687aafa67f980136 |
Close
Hashes for grpcio-1.8.4-cp36-cp36m-macosx_10_7_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7d4304fdbbff7d8c5bb12e865b6a7ce10085d364746fa96a43f786b22131576 |
|
MD5 | f15dc6ad54786b8b05516e85fd8efaf5 |
|
BLAKE2b-256 | 9f2b62f19ed509d440ad9421c3aa525af2b22e8f268b1c0a8d1e1c067486152f |
Close
Hashes for grpcio-1.8.4-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 203c8fbd3f2e1f60372d3a40e965c8752d90ceeb839e7f42517bc7f7d2b009f7 |
|
MD5 | 86cecfc0450ac8942ae467d3acb7ca7d |
|
BLAKE2b-256 | 010b21d6124837202886b168bc116e2a184c9510c16292c575f0744fec949d3e |
Close
Hashes for grpcio-1.8.4-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 383b595b0c7d143a87166a49926ed0e2ca05029fe7b9f80f2ef40595d9d14d5c |
|
MD5 | 94a4d7577101f626a739c47f8343c699 |
|
BLAKE2b-256 | 91594a6f49da99be31ecbddee0d8797bf47896d6033d807bae7b8231069ef220 |
Close
Hashes for grpcio-1.8.4-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50cdff976a5d39869f021dd30964d665156407620279656887bc9761e33b5d3e |
|
MD5 | 1bff6c67fa195649252422103dab0fc2 |
|
BLAKE2b-256 | 8172eef74a87db7548176f4cfbc2a830b8cb809d60494e1e63615a3c96260959 |
Close
Hashes for grpcio-1.8.4-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e893d3c08b2f51b61a52f13a25104232350e9b4f92797c684b0a3ad4f6738ef9 |
|
MD5 | d6ed5ee02019ce3adf56535611716846 |
|
BLAKE2b-256 | 2e0ea6a9aa76a46d9d44d45afd0be2ca8a341ff805afd899780ad6d8e8adbb42 |
Close
Hashes for grpcio-1.8.4-cp35-cp35m-macosx_10_7_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5423114a738e4354a30f863bd7ce33a593bf914bc74924f94c86a7697265606 |
|
MD5 | b177d3c9f5bb40797afcdf8514f27741 |
|
BLAKE2b-256 | 5d730e6cb9482203e983baf44da966f8f04520270f03a9d572b42134c978a733 |
Close
Hashes for grpcio-1.8.4-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aefb5c8f505ff738a31ffb1b33f61ffc3c210b2aeb5620c58a175bc4f5ae59d8 |
|
MD5 | 0e72d3f1481ee6fb9dbd4b760e513a7f |
|
BLAKE2b-256 | d0c4ef20fccbb8e6d66a8893bae243ef056423d60d6b701688241898eb9972f0 |
Close
Hashes for grpcio-1.8.4-cp34-cp34m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd53fd51e26e59be0e42e2d77777d3ec37f15fe922ff1bb2f8d302fcfb6c3b1c |
|
MD5 | 3833a6abc59a82a546dd2629bd92ceb6 |
|
BLAKE2b-256 | f0104c10e77c8cf975bcff36f1806f86404da84d75be4b259209faf7a0a8308b |
Close
Hashes for grpcio-1.8.4-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4f1e1645fe91c2dfc7bc5069a2b58939162feb7ab0f3a1e787637ced5065f86 |
|
MD5 | ad00c8f52a5bd10cd04f497918a3490d |
|
BLAKE2b-256 | eeff4d6a14de772354f195093eb200e60134e07908a394aba8c1c9a3615e3a5f |
Close
Hashes for grpcio-1.8.4-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c88955adc4fd1ae703b46e6f3378a175ce9837095678f9c62b9a8f58d5360ec |
|
MD5 | be59c1abe8f6765ab846429789aba871 |
|
BLAKE2b-256 | d9aeb2924b29acbb058a6f90e7bf2c7ba31d47b922b3ca40e5315dab6fd93fa7 |
Close
Hashes for grpcio-1.8.4-cp34-cp34m-macosx_10_7_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1430d439503cbef0cf3c4aea31a7486d50625b94945d6ba285cac1ab0193a04c |
|
MD5 | d705cf788a810b3534db80daf244ca36 |
|
BLAKE2b-256 | 66b704fedfea38dda005c377dc13d172fda108d4c265b2ae1b504186318928d2 |
Close
Hashes for grpcio-1.8.4-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a425fbf0a9a966cd45c49a6657a3db8fc962297d85d8c53795918cba5d981a0 |
|
MD5 | a1acce92098cc12f2f1f6fe3d769adfc |
|
BLAKE2b-256 | 9c9a4c09b5370c362cef2c4d8bc9c807ecfa0f518c06430e43e8c60cfa7bc39e |
Close
Hashes for grpcio-1.8.4-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ccb16179fad298aaddb9e0d766ba401baa39e012324f643006a3a6bcd62c0b3 |
|
MD5 | 904c45458e363f35531a512fde524308 |
|
BLAKE2b-256 | 28adbcdc28a242fc214d1c3e99afb67c23ad25465578304b381c0be9c117cbf4 |
Close
Hashes for grpcio-1.8.4-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0831edf7c52fa992e257f36b6e3e9d25d14adeaafdd74f2b579a5959b16e10b0 |
|
MD5 | a80d79f6e17acf2775ad1a1b3d124363 |
|
BLAKE2b-256 | a97f600784df48c6b37c607fd6fdded57cb1017aff5483a3833ef28a5284fb25 |
Close
Hashes for grpcio-1.8.4-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3201923855dc74ae1d4a045646b65c3d9100f4f789a12e64a762e9b519371872 |
|
MD5 | b7160f556c722d0a71558716593d37ee |
|
BLAKE2b-256 | 70bd1fa236647d3ce2a604a028c9826e22618824b72140832e469280c5697106 |
Close
Hashes for grpcio-1.8.4-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4f0a3a60a7327b6b4361bbaec95b2d5114e4de04c859c888cfc46cc537aa22c |
|
MD5 | db8dfeed6957dfd36f9c8c9db8155b13 |
|
BLAKE2b-256 | 6efb6d33a5389bee99f3eb7a185a853f148fdb3ad556e31d82653c1460abed8f |
Close
Hashes for grpcio-1.8.4-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1927bf5fc0be579cb0c3fc7b2c16975085b8e147a02aa4013c04bdd21adcf04b |
|
MD5 | f323700347bda1e6ac789ba3a7ee064f |
|
BLAKE2b-256 | f6e6fbec78b8963fbb908b810a558d6735e36ef741b35a3f063d0a4e61383fb7 |
Close
Hashes for grpcio-1.8.4-cp27-cp27m-macosx_10_10_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd1a1a0e20e9708d7724d52dbeaef4a43ac40c4a5d5b791cbb894e7698351f97 |
|
MD5 | 1ca5f6377037c51712b13564c7d065a5 |
|
BLAKE2b-256 | 8b5ddcaf097fc9b7ab39babf4f9f4055e622f6a59e486a31bbd03c48754c36ef |