You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

128 lines
3.3 KiB

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