当前位置:   article > 正文

grpc安装出错ERROR: Command "python setup.py egg_info" failed with error code 1_error - building grpc failed, command - python3 se

error - building grpc failed, command - python3 setup.py build, error - cyth
  1. Collecting grpc
  2. Using cached https://files.pythonhosted.org/packages/dd/63/e25fa1e7dbbd44ae4d2d5ceb1bfef517849c854795e73d01bfd3d250a8b1/grpc-0.3-19.tar.gz
  3. ERROR: Complete output from command python setup.py egg_info:
  4. ERROR: Traceback (most recent call last):
  5. File "<string>", line 1, in <module>
  6. File "/tmp/pip-install-5xa5ht_5/grpc/setup.py", line 7, in <module>
  7. version_tuple = __import__('grpc').VERSION
  8. File "/tmp/pip-install-5xa5ht_5/grpc/grpc/__init__.py", line 6, in <module>
  9. from .rpc import *
  10. File "/tmp/pip-install-5xa5ht_5/grpc/grpc/rpc.py", line 141
  11. except OSError, ex:
  12. ^
  13. SyntaxError: invalid syntax
  14. ----------------------------------------
  15. ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-5xa5ht_5/grpc/

Google  发现是Python3 版本和 python安装不太一样

Python3使用的安装命令是:

pip install grpcio

参考:https://github.com/googleapis/google-cloud-python/issues/2238

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/寸_铁/article/detail/956837
推荐阅读
相关标签
  

闽ICP备14008679号