小编Phi*_*ith的帖子

Tensorflow 1.5构建失败-缺少路径?

我一直在按照教程在macOS上安装和构建Tensorflow。当我尝试构建它时,我使用以下命令:

bazel build --config=cuda --config=opt --copt=-msse4.2 --copt=-mpopcnt --copt=-maes --copt=-mcx16 --verbose_failures --action_env PATH --action_env LD_LIBRARY_PATH --action_env DYLD_LIBRARY_PATH //tensorflow/tools/pip_package:build_pip_package
Run Code Online (Sandbox Code Playgroud)

它几乎立即失败:

ERROR: /Users/psmith/tensorflow/third_party/py/numpy/BUILD:11:1: no such package '@local_config_python//': Traceback (most recent call last):
    File "/Users/psmith/tensorflow/third_party/py/python_configure.bzl", line 291
        _create_local_python_repository(repository_ctx)
    File "/Users/psmith/tensorflow/third_party/py/python_configure.bzl", line 255, in _create_local_python_repository
        _get_numpy_include(repository_ctx, python_bin)
    File "/Users/psmith/tensorflow/third_party/py/python_configure.bzl", line 239, in _get_numpy_include
        _execute(repository_ctx, [python_bin, "-c",..."], <2 more arguments>)
    File "/Users/psmith/tensorflow/third_party/py/python_configure.bzl", line 54, in _execute
        _fail("\n".join([error_msg.strip() if ... ""]))
    File "/Users/psmith/tensorflow/third_party/py/python_configure.bzl", line 27, in _fail
        fail(("%sPython Configuration Error:%...)))
Python Configuration Error: Problem getting numpy include …
Run Code Online (Sandbox Code Playgroud)

python numpy tensorflow

2
推荐指数
1
解决办法
1502
查看次数

标签 统计

numpy ×1

python ×1

tensorflow ×1