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.0rc2.tar.gz
(10.0 MB
view hashes)
Built Distributions
Close
Hashes for grpcio-1.9.0rc2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0531a500d1e0915123c7bd38e2081a9c61c78219db58ebc1cf175739e2211855 |
|
MD5 | b8009b287e6e20490803c114af72694d |
|
BLAKE2b-256 | 781264ca66c935a9a0ec644d9c39e48689eb24a73a635cf30692acf69caa25b8 |
Close
Hashes for grpcio-1.9.0rc2-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af64643c929986b88f29ad3d1f258e7447c4adf18c7bc0e65ba4c349c701d77a |
|
MD5 | 8c28d2a3b62709caee08d89e1de35c72 |
|
BLAKE2b-256 | 6c135f8fc07a3e3eac67fa66eb79004ec2fcdfec93f99d23cfbcf9a19533b45c |
Close
Hashes for grpcio-1.9.0rc2-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ce880fc45371e9dd912703ef2f22d145c7f63f1ae833004a223954be7f98b49 |
|
MD5 | c0dbfef5a991dba343e61a2643a49e0b |
|
BLAKE2b-256 | a928183de008e7a089ca601eac1d44b17e9a3cbcdb1ec2003de6445d2812ddf2 |
Close
Hashes for grpcio-1.9.0rc2-cp36-cp36m-macosx_10_7_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 896f8d9a922374e5a630562fe174649b2c847923e47aa28d05cc88f56f921e2a |
|
MD5 | 882bba3d944a58f2bd9487913fd9155b |
|
BLAKE2b-256 | 60f90e2498b6f4b8efeb8422f3ba29a92e898dbf7833fb94bdfa2a98ea43b881 |
Close
Hashes for grpcio-1.9.0rc2-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd3dacd277c4205acab7c8b3f8537ea0c80c97033834f564b041b8b5d9952200 |
|
MD5 | 8ea39ba0264d94e5fe0304e5894dbf4b |
|
BLAKE2b-256 | f696a1ed6a538b34bbf28a9169641c2167a94de243ed59eee1c8d597cf0dc6e7 |
Close
Hashes for grpcio-1.9.0rc2-cp35-cp35m-macosx_10_7_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8763e32917528b2c185cf02a022fe089c563b7f548726f5871926ecc724140e |
|
MD5 | f8621c80ee6ff9616f675c30003e9715 |
|
BLAKE2b-256 | 5a741e507d6fab2fa13b98c1900461b51ce6645d02dc396f8d087b34750f6d05 |
Close
Hashes for grpcio-1.9.0rc2-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 875161afe6b02946f9174e60ab28b6725fae06554a36c79658d0dbaaf722443d |
|
MD5 | 4815d59fa79b58d0b5179219c4096e15 |
|
BLAKE2b-256 | 902bdfd70a0b8d2fde4d1a56917c32e230c975b2024f5c468152ea2e2fba0664 |
Close
Hashes for grpcio-1.9.0rc2-cp34-cp34m-macosx_10_7_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f921a05b9d9cee3dbfd0564614a7421d090606d4ea6ffc676be154b649c9c04 |
|
MD5 | 082661f2eac12e008a78eb1d3d2b5005 |
|
BLAKE2b-256 | d37a2b5cb178f556fbf6319009cba8d2946da7ec201de440f4f0ad1023b8684e |
Close
Hashes for grpcio-1.9.0rc2-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89f6804cc7389b5196966332dd8463b9c469ff313f7254eda3dffb49bbd10fdf |
|
MD5 | 2e5b462569e6b98a0f3650baba9e4319 |
|
BLAKE2b-256 | ce17a5bba52af86e4a8b27c9797e4c7d9d2a6106270b3b3d47243267c33ff626 |
Close
Hashes for grpcio-1.9.0rc2-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f15eb0ccbbcf740c9bfca4bd635fb94abeb507de2ac841747bfe22c66809330 |
|
MD5 | f5558036933dac9cb26ee64591accef0 |
|
BLAKE2b-256 | 13197dfb7abf18703ca9f56ce8ca8d600cb34824d928c7039bbeaf7f3669ec3a |
Close
Hashes for grpcio-1.9.0rc2-cp27-cp27m-macosx_10_10_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6a1cf3b98ef96c4d8f5baf0753aa39c452c7fed93dfabad644cd5594de58596 |
|
MD5 | 3a2c23cd395bfe1fc370c2994bdc411a |
|
BLAKE2b-256 | 979531db9b925c1cb61d1ee7ebd75fc4a2cd543d6cd63c4ec7acc24c48cffe9b |