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.0rc1.tar.gz
(10.0 MB
view hashes)
Built Distributions
Close
Hashes for grpcio-1.9.0rc1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a26f99b07d30c0055e2f3128da73590515b688b76799f724fe43106a431d464a |
|
MD5 | 9eb1f92a484d68d19326aaf428abfd78 |
|
BLAKE2b-256 | 298ff2776ecc87f11789fbad0d4ecff95bd1ab3b669a37aafdc17c2938d74c2c |
Close
Hashes for grpcio-1.9.0rc1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b29af63f8c50fc70f4ba234c02e318f10adcf074948844dcae3bd444027ebdf7 |
|
MD5 | 5bda43f1e8157f6b4b4c5c042fef11e8 |
|
BLAKE2b-256 | 832407acd2598b9a4c0991ec3b3bdec9b0d1e33824076493e1c2e7444bdaa849 |
Close
Hashes for grpcio-1.9.0rc1-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44d319e20b8a46026242e98c2ea39d69e28515f95a259db7b1932fada8ceb0d4 |
|
MD5 | d95c0f2b4a619d26bfd439cf7d480451 |
|
BLAKE2b-256 | aa6886e8f500d02450cb1246314e0a239880491b9ea61d8605dc385f1a935624 |
Close
Hashes for grpcio-1.9.0rc1-cp36-cp36m-macosx_10_7_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa84240f0e96aeb404ebd39275e722f8253c5fce9818108e7c4b2922ca396fb3 |
|
MD5 | 27d1df27678db9f5b5d2917db3ebe102 |
|
BLAKE2b-256 | 48d61cc3326a7cfb8d8a42c61227c1edc56a7bd5bd8be0fc89441a9414debfe8 |
Close
Hashes for grpcio-1.9.0rc1-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b36f133101091b7755276152b918dcd2afd1d7e4a592691229a7467a7e96f67 |
|
MD5 | fe2fcb5e224f0399879c9832c7a17e97 |
|
BLAKE2b-256 | 1c42a919089fc319e2e530d7530889e6e42766eecd13dba78332558dcf765cbf |
Close
Hashes for grpcio-1.9.0rc1-cp35-cp35m-macosx_10_7_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 672c7cc02a0de66002e406262268822042cef5304198884983aecd4b14ecf19f |
|
MD5 | b66e398dce7df8f35128d94c9a89cee7 |
|
BLAKE2b-256 | 2d86f0adbb5332a09e69c6b9157322dde98d3e0b479ac531666219d2955d2676 |
Close
Hashes for grpcio-1.9.0rc1-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b5fc4511fb7e3db3453192ee112e7ec664a89464eee80b5ff6cb3c29e2708bd |
|
MD5 | 2c3660e442f518e04909c833c275f34c |
|
BLAKE2b-256 | 06f07d51f311d4425c16ba986385044c4ca26efde19fe4eba578b46088ae0d29 |
Close
Hashes for grpcio-1.9.0rc1-cp34-cp34m-macosx_10_7_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb7db5cf6be46040d4941fb4cfaf5360749daef23303f5903b98478739b70d71 |
|
MD5 | e1b6d870f30addffc71458ddb0dcb753 |
|
BLAKE2b-256 | c8b3083eca236d5edee437434e6f1a176f9f48424f23996e03f73305e87406a6 |
Close
Hashes for grpcio-1.9.0rc1-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7412d922616494fbe3929762db523be4edf199104ae1460d11202b93abedd5ff |
|
MD5 | 9a9ed9d6368f3265f09801daa9249a1b |
|
BLAKE2b-256 | 047b9cb42ceb41055dbce5827de9797861e8c0eacfc164b6accc600dd0f62d21 |
Close
Hashes for grpcio-1.9.0rc1-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ab81a3edd7dad3aa0b5df752b3d0000a9d8818154d9dec02a54f00b6713d22d |
|
MD5 | 8411f86d53c58dd4cb31d1d58b7cbaa9 |
|
BLAKE2b-256 | 2db404b76d2e259adaaead8b074210694f2b32cb88591c4514750373900197ae |
Close
Hashes for grpcio-1.9.0rc1-cp27-cp27m-macosx_10_10_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 070c3012587e86924f44f78cff9eb03c92ea6d0d6a215f5c0543712ce5fb87f9 |
|
MD5 | 086a8c788f9ee22589764a0b7493ddc5 |
|
BLAKE2b-256 | 41009f1de68d01fc4a6438e6604a140cfb4cf0f303a96d79e87953ffada0ceef |