gRPC Python
===========
|compat_check_pypi|
Package for gRPC Python.
.. |compat_check_pypi| image:: https://python-compatibility-tools.appspot.com/one_badge_image?package=grpcio
:target: https://python-compatibility-tools.appspot.com/one_badge_target?package=grpcio
Supported Python Versions
-------------------------
Python >= 3.7
Installation
------------
gRPC Python is available for Linux, macOS, and Windows.
Installing From PyPI
~~~~~~~~~~~~~~~~~~~~
If you are installing locally...
::
$ pip install grpcio
Else system wide (on Ubuntu)...
::
$ sudo pip install grpcio
If you're on Windows make sure that you installed the :code:`pip.exe` component
when you installed Python (if not go back and install it!) then invoke:
::
$ pip.exe install grpcio
Windows users may need to invoke :code:`pip.exe` from a command line ran as
administrator.
n.b. On Windows and on Mac OS X one *must* have a recent release of :code:`pip`
to retrieve the proper wheel from PyPI. Be sure to upgrade to the latest
version!
Installing From Source
~~~~~~~~~~~~~~~~~~~~~~
Building from source requires that you have the Python headers (usually a
package named :code:`python-dev`).
::
$ export REPO_ROOT=grpc # REPO_ROOT can be any directory of your choice
$ git clone -b RELEASE_TAG_HERE https://github.com/grpc/grpc $REPO_ROOT
$ cd $REPO_ROOT
$ git submodule update --init
# For the next two commands do `sudo pip install` if you get permission-denied errors
$ pip install -rrequirements.txt
$ GRPC_PYTHON_BUILD_WITH_CYTHON=1 pip install .
You cannot currently install Python from source on Windows. Things might work
out for you in MSYS2 (follow the Linux instructions), but it isn't officially
supported at the moment.
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`
For example, if you get an error like the following:
::
Traceback (most recent call last):
File "<string>", line 17, in <module>
...
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 509, in find
raise VersionConflict(dist, req)
pkg_resources.VersionConflict: (six 1.8.0 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.10'))
You can fix it by doing:
::
sudo pip install --ignore-installed six
* **... see the following error on some platforms**
::
/tmp/pip-build-U8pSsr/cython/Cython/Plex/Scanners.c:4:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
You can fix it by installing `python-dev` package. i.e
::
sudo apt-get install python-dev
Raw data
{
"_id": null,
"home_page": "https://grpc.io",
"name": "grpcio-fips",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "The gRPC Authors",
"author_email": "grpc-io@googlegroups.com",
"download_url": "",
"platform": null,
"description": "gRPC Python\r\n===========\r\n\r\n|compat_check_pypi|\r\n\r\nPackage for gRPC Python.\r\n\r\n.. |compat_check_pypi| image:: https://python-compatibility-tools.appspot.com/one_badge_image?package=grpcio\r\n :target: https://python-compatibility-tools.appspot.com/one_badge_target?package=grpcio\r\n\r\nSupported Python Versions\r\n-------------------------\r\nPython >= 3.7\r\n\r\nInstallation\r\n------------\r\n\r\ngRPC Python is available for Linux, macOS, and Windows.\r\n\r\nInstalling From PyPI\r\n~~~~~~~~~~~~~~~~~~~~\r\n\r\nIf you are installing locally...\r\n\r\n::\r\n\r\n $ pip install grpcio\r\n\r\nElse system wide (on Ubuntu)...\r\n\r\n::\r\n\r\n $ sudo pip install grpcio\r\n\r\nIf you're on Windows make sure that you installed the :code:`pip.exe` component\r\nwhen you installed Python (if not go back and install it!) then invoke:\r\n\r\n::\r\n\r\n $ pip.exe install grpcio\r\n\r\nWindows users may need to invoke :code:`pip.exe` from a command line ran as\r\nadministrator.\r\n\r\nn.b. On Windows and on Mac OS X one *must* have a recent release of :code:`pip`\r\nto retrieve the proper wheel from PyPI. Be sure to upgrade to the latest\r\nversion!\r\n\r\nInstalling From Source\r\n~~~~~~~~~~~~~~~~~~~~~~\r\n\r\nBuilding from source requires that you have the Python headers (usually a\r\npackage named :code:`python-dev`).\r\n\r\n::\r\n\r\n $ export REPO_ROOT=grpc # REPO_ROOT can be any directory of your choice\r\n $ git clone -b RELEASE_TAG_HERE https://github.com/grpc/grpc $REPO_ROOT\r\n $ cd $REPO_ROOT\r\n $ git submodule update --init\r\n\r\n # For the next two commands do `sudo pip install` if you get permission-denied errors\r\n $ pip install -rrequirements.txt\r\n $ GRPC_PYTHON_BUILD_WITH_CYTHON=1 pip install .\r\n\r\nYou cannot currently install Python from source on Windows. Things might work\r\nout for you in MSYS2 (follow the Linux instructions), but it isn't officially\r\nsupported at the moment.\r\n\r\nTroubleshooting\r\n~~~~~~~~~~~~~~~\r\n\r\nHelp, I ...\r\n\r\n* **... see a** :code:`pkg_resources.VersionConflict` **when I try to install\r\n grpc**\r\n\r\n This is likely because :code:`pip` doesn't own the offending dependency,\r\n which in turn is likely because your operating system's package manager owns\r\n it. You'll need to force the installation of the dependency:\r\n\r\n :code:`pip install --ignore-installed $OFFENDING_DEPENDENCY`\r\n\r\n For example, if you get an error like the following:\r\n\r\n ::\r\n\r\n Traceback (most recent call last):\r\n File \"<string>\", line 17, in <module>\r\n ...\r\n File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 509, in find\r\n raise VersionConflict(dist, req)\r\n pkg_resources.VersionConflict: (six 1.8.0 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.10'))\r\n\r\n You can fix it by doing:\r\n\r\n ::\r\n\r\n sudo pip install --ignore-installed six\r\n\r\n* **... see the following error on some platforms**\r\n\r\n ::\r\n\r\n /tmp/pip-build-U8pSsr/cython/Cython/Plex/Scanners.c:4:20: fatal error: Python.h: No such file or directory\r\n #include \"Python.h\"\r\n ^\r\n compilation terminated.\r\n\r\n You can fix it by installing `python-dev` package. i.e\r\n\r\n ::\r\n\r\n sudo apt-get install python-dev\r\n\r\n\r\n\r\n",
"bugtrack_url": null,
"license": "Apache License 2.0",
"summary": "HTTP/2-based RPC framework",
"version": "1.53.2",
"project_urls": {
"Homepage": "https://grpc.io"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a8dd11c97dd9a922802bd2ca822da9c5cc96933f15f42d27ceb3cda16a242b12",
"md5": "8647be51d85918e74d562635378eec12",
"sha256": "89099ae1ca934bf6608e0507695cd5c5a01dfc4f06ee07025f3495067da01913"
},
"downloads": -1,
"filename": "grpcio_fips-1.53.2-0-cp310-cp310-win_amd64.whl",
"has_sig": false,
"md5_digest": "8647be51d85918e74d562635378eec12",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.7",
"size": 2799666,
"upload_time": "2024-02-22T23:52:49",
"upload_time_iso_8601": "2024-02-22T23:52:49.154092Z",
"url": "https://files.pythonhosted.org/packages/a8/dd/11c97dd9a922802bd2ca822da9c5cc96933f15f42d27ceb3cda16a242b12/grpcio_fips-1.53.2-0-cp310-cp310-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2befaedda966c16d4dfeab319a05382eb358a9256d6f49ff7a7cc1409c54db34",
"md5": "a7a6aa0024d92bf40cdd34e310b33e1e",
"sha256": "78a915bacb2721c8896dd26ab5be7151ce1f2fcfce36582626c21e214b6f29a6"
},
"downloads": -1,
"filename": "grpcio_fips-1.53.2-0-cp38-cp38-win_amd64.whl",
"has_sig": false,
"md5_digest": "a7a6aa0024d92bf40cdd34e310b33e1e",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.7",
"size": 3267771,
"upload_time": "2024-02-22T23:50:38",
"upload_time_iso_8601": "2024-02-22T23:50:38.512797Z",
"url": "https://files.pythonhosted.org/packages/2b/ef/aedda966c16d4dfeab319a05382eb358a9256d6f49ff7a7cc1409c54db34/grpcio_fips-1.53.2-0-cp38-cp38-win_amd64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-22 23:52:49",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "grpcio-fips"
}