OLD | NEW |
(Empty) | |
| 1 gRPC Python |
| 2 =========== |
| 3 |
| 4 Package for gRPC Python. |
| 5 |
| 6 Installation |
| 7 ------------ |
| 8 |
| 9 gRPC Python is available for Linux, Mac OS X, and Windows running Python 2.7. |
| 10 |
| 11 From PyPI |
| 12 ~~~~~~~~~ |
| 13 |
| 14 If you are installing locally... |
| 15 |
| 16 :: |
| 17 |
| 18 $ pip install grpcio |
| 19 |
| 20 Else system wide (on Ubuntu)... |
| 21 |
| 22 :: |
| 23 |
| 24 $ sudo pip install grpcio |
| 25 |
| 26 n.b. On Windows and on Mac OS X one *must* have a recent release of :code:`pip` |
| 27 to retrieve the proper wheel from PyPI. Be sure to upgrade to the latest |
| 28 version! |
| 29 |
| 30 From Source |
| 31 ~~~~~~~~~~~ |
| 32 |
| 33 Building from source requires that you have the Python headers (usually a |
| 34 package named :code:`python-dev`). |
| 35 |
| 36 :: |
| 37 |
| 38 $ export REPO_ROOT=grpc |
| 39 $ git clone https://github.com/grpc/grpc.git $REPO_ROOT |
| 40 $ cd $REPO_ROOT |
| 41 $ pip install . |
| 42 |
| 43 Note that :code:`$REPO_ROOT` can be assigned to whatever directory name floats |
| 44 your fancy. |
| 45 |
| 46 Troubleshooting |
| 47 ~~~~~~~~~~~~~~~ |
| 48 |
| 49 Help, I ... |
| 50 |
| 51 * **... see a** :code:`pkg_resources.VersionConflict` **when I try to install |
| 52 grpc!** |
| 53 |
| 54 This is likely because :code:`pip` doesn't own the offending dependency, |
| 55 which in turn is likely because your operating system's package manager owns |
| 56 it. You'll need to force the installation of the dependency: |
| 57 |
| 58 :code:`pip install --ignore-installed $OFFENDING_DEPENDENCY` |
OLD | NEW |