报错部分如下:
```python
ERROR: An error occurred during the fetch of repository 'local_config_cuda':
Traceback (most recent call last):
File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 1210
_create_local_cuda_repository(<1 more arguments>)
File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 934, in _create_local_cuda_repository
_find_libs(repository_ctx, <2 more arguments>)
File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 577, in _find_libs
_check_cuda_libs(repository_ctx, <2 more arguments>)
File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 479, in _check_cuda_libs
execute(repository_ctx, <1 more arguments>)
File "/home/owner/Downloads/tensorflow-2.2.0/third_party/remote_config/common.bzl", line 208, in execute
fail(<1 more arguments>)
Repository command failed
Traceback (most recent call last):
File "script.py", line 88, in <module>
main()
File "script.py", line 77, in main
check_cuda_lib(path, check_soname=args[i + 1] == "True")
File "script.py", line 62, in check_cuda_lib
output = subprocess.check_output([objdump, "-p", path]).decode("ascii")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 40: ordinal not in range(128)
ERROR: Skipping '//tensorflow/tools/pip_package:build_pip_package': no such package '@local_config_cuda//cuda': Traceback (most recent call last):
File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 1210
_create_local_cuda_repository(<1 more arguments>)
File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 934, in _create_local_cuda_repository
_find_libs(repository_ctx, <2 more arguments>)
File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 577, in _find_libs
_check_cuda_libs(repository_ctx, <2 more arguments>)
File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 479, in _check_cuda_libs
execute(repository_ctx, <1 more arguments>)
File "/home/owner/Downloads/tensorflow-2.2.0/third_party/remote_config/common.bzl", line 208, in execute
fail(<1 more arguments>)
Repository command failed
Traceback (most recent call last):
File "script.py", line 88, in <module>
main()
File "script.py", line 77, in main
check_cuda_lib(path, check_soname=args[i + 1] == "True")
File "script.py", line 62, in check_cuda_lib
output = subprocess.check_output([objdump, "-p", path]).decode("ascii")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 40: ordinal not in range(128)
WARNING: Target pattern parsing failed.
ERROR: no such package '@local_config_cuda//cuda': Traceback (most recent call last):
File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 1210
_create_local_cuda_repository(<1 more arguments>)
File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 934, in _create_local_cuda_repository
_find_libs(repository_ctx, <2 more arguments>)
File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 577, in _find_libs
_check_cuda_libs(repository_ctx, <2 more arguments>)
File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 479, in _check_cuda_libs
execute(repository_ctx, <1 more arguments>)
File "/home/owner/Downloads/tensorflow-2.2.0/third_party/remote_config/common.bzl", line 208, in execute
fail(<1 more arguments>)
Repository command failed
Traceback (most recent call last):
File "script.py", line 88, in <module>
main()
File "script.py", line 77, in main
check_cuda_lib(path, check_soname=args[i + 1] == "True")
File "script.py", line 62, in check_cuda_lib
output = subprocess.check_output([objdump, "-p", path]).decode("ascii")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 40: ordinal not in range(128)
INFO: Elapsed time: 0.404s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
currently loading: tensorflow/tools/pip_package
https://github.com/tensorflow/tensorflow/tags #TENSORFLOW
sudo gedit configure.py
https://oplab9.parqtec.unicamp.br/pub/ppc64el/bazel/