README.rst 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. gRPC Python
  2. ===========
  3. Package for gRPC Python.
  4. Installation
  5. ------------
  6. gRPC Python is available for Linux and Mac OS X running Python 2.7.
  7. From PyPI
  8. ~~~~~~~~~
  9. If you are installing locally...
  10. ::
  11. $ pip install grpcio
  12. Else system wide (on Ubuntu)...
  13. ::
  14. $ sudo pip install grpcio
  15. From Source
  16. ~~~~~~~~~~~
  17. Building from source requires that you have the Python headers (usually a
  18. package named `python-dev`).
  19. ::
  20. $ export REPO_ROOT=grpc
  21. $ git clone https://github.com/grpc/grpc.git $REPO_ROOT
  22. $ cd $REPO_ROOT
  23. $ pip install .
  24. Note that `$REPO_ROOT` can be assigned to whatever directory name floats your
  25. fancy.
  26. Troubleshooting
  27. ~~~~~~~~~~~~~~~
  28. Help, I ...
  29. * **... see a** :code:`pkg_resources.VersionConflict` **when I try to install
  30. grpc!**
  31. This is likely because :code:`pip` doesn't own the offending dependency,
  32. which in turn is likely because your operating system's package manager owns
  33. it. You'll need to force the installation of the dependency:
  34. :code:`pip install --ignore-installed $OFFENDING_DEPENDENCY`