METADATA 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. Metadata-Version: 2.1
  2. Name: grpcio
  3. Version: 1.50.0
  4. Summary: HTTP/2-based RPC framework
  5. Home-page: https://grpc.io
  6. Author: The gRPC Authors
  7. Author-email: grpc-io@googlegroups.com
  8. License: Apache License 2.0
  9. Classifier: Development Status :: 5 - Production/Stable
  10. Classifier: Programming Language :: Python
  11. Classifier: Programming Language :: Python :: 3
  12. Classifier: Programming Language :: Python :: 3.7
  13. Classifier: Programming Language :: Python :: 3.8
  14. Classifier: Programming Language :: Python :: 3.9
  15. Classifier: Programming Language :: Python :: 3.10
  16. Classifier: Programming Language :: Python :: 3.11
  17. Classifier: License :: OSI Approved :: Apache Software License
  18. Requires-Python: >=3.7
  19. License-File: LICENSE
  20. Requires-Dist: six (>=1.5.2)
  21. Requires-Dist: futures (>=2.2.0) ; python_version < "3.2"
  22. Requires-Dist: enum34 (>=1.0.4) ; python_version < "3.4"
  23. Provides-Extra: protobuf
  24. Requires-Dist: grpcio-tools (>=1.50.0) ; extra == 'protobuf'
  25. gRPC Python
  26. ===========
  27. |compat_check_pypi|
  28. Package for gRPC Python.
  29. .. |compat_check_pypi| image:: https://python-compatibility-tools.appspot.com/one_badge_image?package=grpcio
  30. :target: https://python-compatibility-tools.appspot.com/one_badge_target?package=grpcio
  31. Supported Python Versions
  32. -------------------------
  33. Python >= 3.7
  34. Installation
  35. ------------
  36. gRPC Python is available for Linux, macOS, and Windows.
  37. Installing From PyPI
  38. ~~~~~~~~~~~~~~~~~~~~
  39. If you are installing locally...
  40. ::
  41. $ pip install grpcio
  42. Else system wide (on Ubuntu)...
  43. ::
  44. $ sudo pip install grpcio
  45. If you're on Windows make sure that you installed the :code:`pip.exe` component
  46. when you installed Python (if not go back and install it!) then invoke:
  47. ::
  48. $ pip.exe install grpcio
  49. Windows users may need to invoke :code:`pip.exe` from a command line ran as
  50. administrator.
  51. n.b. On Windows and on Mac OS X one *must* have a recent release of :code:`pip`
  52. to retrieve the proper wheel from PyPI. Be sure to upgrade to the latest
  53. version!
  54. Installing From Source
  55. ~~~~~~~~~~~~~~~~~~~~~~
  56. Building from source requires that you have the Python headers (usually a
  57. package named :code:`python-dev`).
  58. ::
  59. $ export REPO_ROOT=grpc # REPO_ROOT can be any directory of your choice
  60. $ git clone -b RELEASE_TAG_HERE https://github.com/grpc/grpc $REPO_ROOT
  61. $ cd $REPO_ROOT
  62. $ git submodule update --init
  63. # For the next two commands do `sudo pip install` if you get permission-denied errors
  64. $ pip install -rrequirements.txt
  65. $ GRPC_PYTHON_BUILD_WITH_CYTHON=1 pip install .
  66. You cannot currently install Python from source on Windows. Things might work
  67. out for you in MSYS2 (follow the Linux instructions), but it isn't officially
  68. supported at the moment.
  69. Troubleshooting
  70. ~~~~~~~~~~~~~~~
  71. Help, I ...
  72. * **... see a** :code:`pkg_resources.VersionConflict` **when I try to install
  73. grpc**
  74. This is likely because :code:`pip` doesn't own the offending dependency,
  75. which in turn is likely because your operating system's package manager owns
  76. it. You'll need to force the installation of the dependency:
  77. :code:`pip install --ignore-installed $OFFENDING_DEPENDENCY`
  78. For example, if you get an error like the following:
  79. ::
  80. Traceback (most recent call last):
  81. File "<string>", line 17, in <module>
  82. ...
  83. File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 509, in find
  84. raise VersionConflict(dist, req)
  85. pkg_resources.VersionConflict: (six 1.8.0 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.10'))
  86. You can fix it by doing:
  87. ::
  88. sudo pip install --ignore-installed six
  89. * **... see the following error on some platforms**
  90. ::
  91. /tmp/pip-build-U8pSsr/cython/Cython/Plex/Scanners.c:4:20: fatal error: Python.h: No such file or directory
  92. #include "Python.h"
  93. ^
  94. compilation terminated.
  95. You can fix it by installing `python-dev` package. i.e
  96. ::
  97. sudo apt-get install python-dev