Nathaniel Manista 8c5be78eb9 Merge pull request #5542 from soltanmm/over-troubled-water 9 년 전
..
grpc 18720fff2f Maintain correct queue invariants against core 9 년 전
tests fa6cad701c grpc_set_ssl_roots_override_callback for Python 10 년 전
.gitignore fa6cad701c grpc_set_ssl_roots_override_callback for Python 10 년 전
README.rst 7bee07555a Add troubleshooting section to package description 9 년 전
commands.py f747409f6f Use precompiled extensions only 10 년 전
grpc_core_dependencies.py 4ea4599a50 Merge github.com:grpc/grpc into naming-crisis 9 년 전
grpc_version.py 1935c3655c Flagging master as 0.14.0-dev. 10 년 전
precompiled.py 736173487c Exclude cygrpc.so from the Python package 9 년 전
support.py 097070fe20 Diagnose missing Cython-generated files 10 년 전

README.rst

gRPC Python
===========

Package for gRPC Python.

Installation
------------

gRPC Python is available for Linux and Mac OS X running Python 2.7.

From PyPI
~~~~~~~~~

If you are installing locally...

::

$ pip install grpcio

Else system wide (on Ubuntu)...

::

$ sudo pip install grpcio

From Source
~~~~~~~~~~~

Building from source requires that you have the Python headers (usually a
package named `python-dev`).

::

$ export REPO_ROOT=grpc
$ git clone https://github.com/grpc/grpc.git $REPO_ROOT
$ cd $REPO_ROOT
$ pip install .

Note that `$REPO_ROOT` can be assigned to whatever directory name floats your
fancy.

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`