README.rst 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. gRPC Python
  2. ===========
  3. Package for gRPC Python.
  4. Installation
  5. ------------
  6. gRPC Python is available for Linux, Mac OS X, and Windows 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. n.b. On Windows and on Mac OS X one *must* have a recent release of :code:`pip`
  16. to retrieve the proper wheel from PyPI. Be sure to upgrade to the latest
  17. version!
  18. From Source
  19. ~~~~~~~~~~~
  20. Building from source requires that you have the Python headers (usually a
  21. package named :code:`python-dev`).
  22. ::
  23. $ export REPO_ROOT=grpc # REPO_ROOT can be any directory of your choice
  24. $ git clone https://github.com/grpc/grpc.git $REPO_ROOT
  25. $ cd $REPO_ROOT
  26. # For the next two commands do `sudo pip install` if you get permission-denied errors
  27. $ pip install -rrequirements.txt
  28. $ GRPC_PYTHON_BUILD_WITH_CYTHON=1 pip install .
  29. Troubleshooting
  30. ~~~~~~~~~~~~~~~
  31. Help, I ...
  32. * **... see a** :code:`pkg_resources.VersionConflict` **when I try to install
  33. grpc!**
  34. This is likely because :code:`pip` doesn't own the offending dependency,
  35. which in turn is likely because your operating system's package manager owns
  36. it. You'll need to force the installation of the dependency:
  37. :code:`pip install --ignore-installed $OFFENDING_DEPENDENCY`