有人可以给我一些有关正确配置Python / Bazel的提示吗?

问题描述

示例项目gRPC-Python-Multiprocessing有点问题。

我遵循了Bazell和Python的安装说明。但是,在Linux(Ubuntu 20.04 | Terminal)和Windows 10(20.04 | Powershell-Admin)下的命令“ bazel run //示例/ python /多处理:服务器&”之后,出现以下错误消息。

Repository rule python_configure defined at:


C:/users/roadrunner/desktop/grpc/third_party/py/python_configure.bzl:347:35: in <toplevel>
ERROR: An error occurred during the fetch of repository 'local_config_python':
   Traceback (most recent call last):
        File "C:/users/roadrunner/desktop/grpc/third_party/py/python_configure.bzl",line 331,column 35,in _python_autoconf_impl
                _create_single_version_package(
        File "C:/users/roadrunner/desktop/grpc/third_party/py/python_configure.bzl",line 288,column 41,in _create_single_version_package
                python_include = _get_python_include(repository_ctx,python_bin)
        File "C:/users/roadrunner/desktop/grpc/third_party/py/python_configure.bzl",line 246,column 13,in _get_python_include
                _execute(
        File "C:/users/roadrunner/desktop/grpc/third_party/py/python_configure.bzl",line 62,column 14,in _execute
                _fail("\n".join([
        File "C:/users/roadrunner/desktop/grpc/third_party/py/python_configure.bzl",line 35,column 9,in _fail
                fail("%sPython Configuration Error:%s %s\n" % (red,no_color,msg))

不幸的是,我仍然是Python 3.7.9版或Bazel 3.5.0版的初学者,无法向自己解释缺少的存储库。那么路径或python配置有什么问题?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)