TensorFlow 集成TensorRT环境配置之NameError: name 'cuda_toolkit_path_full' is not defined

Using username "sinc-lab".
[email protected]'s password:
Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-21-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

10 packages can be updated.
0 updates are security updates.

New release '18.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

*** System restart required ***
Last login: Fri Aug 24 10:06:32 2018 from 10.14.159.73
sinc-lab@sinclab-desktop:~$ cd LYH/
sinc-lab@sinclab-desktop:~/LYH$ ls -lb
total 17976
-rw-rw-r--  1 sinc-lab sinc-lab     1477 8月  19 18:46 backup@20180818
drwxrwxr-x 19 sinc-lab sinc-lab     4096 8月  21 00:20 caffe
drwxr-xr-x  5 sinc-lab sinc-lab     4096 8月  20 01:11 cudnn_samples_v7
drwxrwxr-x  6 sinc-lab sinc-lab     4096 8月  21 15:21 data
drwxrwxr-x  3 sinc-lab sinc-lab     4096 8月  20 02:28 Downloads
drwxrwxr-x  7 sinc-lab sinc-lab     4096 8月  21 15:28 gcn
drwxrwxr-x  4 sinc-lab sinc-lab     4096 8月  22 11:07 LearningToCompare_ZSL
drwxrwxr-x 12 sinc-lab sinc-lab     4096 8月  19 20:03 opencv-3.2.0
drwxrwxr-x 13 sinc-lab sinc-lab     4096 8月  19 21:01 opencv-3.4.2
drwxrwxr-x  4 sinc-lab sinc-lab     4096 8月  22 10:26 tensorflow
drwxr-xr-x  6 sinc-lab sinc-lab     4096 8月  24 03:13 tensorrt
drwxr-xr-x  2 sinc-lab sinc-lab     4096 6月  28 20:30 Viterbi
drwxr-xr-x  2 sinc-lab sinc-lab     4096 6月  29 23:17 Viterbi_20000iter_SNR[1-1                                                                                                                                                             -20]
drwxrwxr-x  7 sinc-lab sinc-lab     4096 8月  24 14:34 zero-shot-gcn
drwxrwxr-x  4 sinc-lab sinc-lab     4096 8月  23 19:46 zjb
-rw-rw-r--  1 sinc-lab sinc-lab 18342904 9月  10  2017 《鸟哥的Linux私房菜-基础                                                                                                                                                             篇》第四版.pdf
sinc-lab@sinclab-desktop:~/LYH$ cd tensorflow/
sinc-lab@sinclab-desktop:~/LYH/tensorflow$ cd
sinc-lab@sinclab-desktop:~$ ls -lb
total 488
drwxr-xr-x 22 root     root       4096 5月  23 13:14 anaconda3
drwxrwxr-x  2 sinc-lab sinc-lab   4096 5月  24 20:41 AnacondaProjects
drwxrwxr-x  4 sinc-lab sinc-lab   4096 8月   9 14:28 CXW
drwxr-xr-x  3 sinc-lab sinc-lab   4096 7月  16 17:54 Desktop
drwxr-xr-x  5 sinc-lab sinc-lab   4096 6月   8 13:33 Documents
drwxr-xr-x  4 sinc-lab sinc-lab   4096 8月  24 02:40 Downloads
-rw-r--r--  1 sinc-lab sinc-lab   8980 5月  23 11:20 examples.desktop
drwxrwxr-x 14 sinc-lab sinc-lab   4096 6月  28 21:49 libiio
-rw-rw-r--  1 sinc-lab sinc-lab 412304 10月 16  2013 libx264-123_0.123.2189+git3                                                                                                                                                             5cf912-1ubuntu1_amd64.deb
-rw-rw-r--  1 sinc-lab sinc-lab      0 8月  19 20:09 “libx264-123.deb”
drwxrwxr-x 16 sinc-lab sinc-lab   4096 8月  24 03:13 LYH
-rw-rw-r--  1 sinc-lab sinc-lab  11921 6月  16 17:46 matlab_crash_dump.10941-1
drwxr-xr-x  2 sinc-lab sinc-lab   4096 5月  23 11:34 Music
drwxr-xr-x 12 sinc-lab sinc-lab   4096 5月  23 13:43 NVIDIA_CUDA-9.0_Samples
drwxr-xr-x  2 sinc-lab sinc-lab   4096 5月  23 11:34 Pictures
drwxr-xr-x  2 sinc-lab sinc-lab   4096 5月  23 11:34 Public
drwxr-xr-x  2 sinc-lab sinc-lab   4096 5月  23 11:34 Templates
drwxr-xr-x  2 sinc-lab sinc-lab   4096 5月  23 11:34 Videos
drwxrwxr-x 10 sinc-lab sinc-lab   4096 7月  30 11:05 WT
sinc-lab@sinclab-desktop:~$ git clone https://github.com/tensorflow/tensorflow
Cloning into 'tensorflow'...
remote: Counting objects: 412384, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 412384 (delta 0), reused 6 (delta 0), pack-reused 412378
Receiving objects: 100% (412384/412384), 244.33 MiB | 3.26 MiB/s, done.
Resolving deltas: 100% (328658/328658), done.
Checking connectivity... done.
sinc-lab@sinclab-desktop:~$ sudo apt-get install python-numpy swig python-dev py                                                                                                                                                             thon-wheel
[sudo] password for sinc-lab:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-numpy is already the newest version (1:1.11.0-1ubuntu1).
python-numpy set to manually installed.
swig is already the newest version (3.0.8-0ubuntu3).
python-dev is already the newest version (2.7.12-1~16.04).
The following packages were automatically installed and are no longer required:
  libllvm3.8 linux-headers-4.4.0-127 linux-headers-4.4.0-127-generic
  linux-headers-4.4.0-128 linux-headers-4.4.0-128-generic
  linux-headers-4.4.0-130 linux-headers-4.4.0-130-generic
  linux-headers-4.4.0-133 linux-headers-4.4.0-133-generic
  linux-image-4.4.0-127-generic linux-image-4.4.0-128-generic
  linux-image-4.4.0-130-generic linux-image-4.4.0-133-generic
  linux-image-extra-4.4.0-127-generic linux-image-extra-4.4.0-128-generic
  linux-image-extra-4.4.0-130-generic linux-image-extra-4.4.0-133-generic
  linux-signed-image-4.4.0-127-generic linux-signed-image-4.4.0-128-generic
  linux-signed-image-4.4.0-130-generic linux-signed-image-4.4.0-133-generic
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  python-setuptools
The following NEW packages will be installed:
  python-wheel
0 to upgrade, 1 to newly install, 0 to remove and 9 not to upgrade.
Need to get 48.0 kB of archives.
After this operation, 211 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://mirrors.hust.edu.cn/ubuntu xenial/universe amd64 python-wheel all 0                                                                                                                                                             .29.0-1 [48.0 kB]
Fetched 48.0 kB in 0s (429 kB/s)
Selecting previously unselected package python-wheel.
(Reading database ... 406974 files and directories currently installed.)
Preparing to unpack .../python-wheel_0.29.0-1_all.deb ...
Unpacking python-wheel (0.29.0-1) ...
Setting up python-wheel (0.29.0-1) ...
sinc-lab@sinclab-desktop:~$ sudo apt-get install pkg-config zip g++ zlib1g-dev u                                                                                                                                                             nzip python
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++ is already the newest version (4:5.3.1-1ubuntu1).
g++ set to manually installed.
pkg-config is already the newest version (0.29.1-0ubuntu1).
unzip is already the newest version (6.0-20ubuntu1).
unzip set to manually installed.
zip is already the newest version (3.0-11).
zip set to manually installed.
python is already the newest version (2.7.12-1~16.04).
python set to manually installed.
zlib1g-dev is already the newest version (1:1.2.8.dfsg-2ubuntu4.1).
zlib1g-dev set to manually installed.
The following packages were automatically installed and are no longer required:
  libllvm3.8 linux-headers-4.4.0-127 linux-headers-4.4.0-127-generic
  linux-headers-4.4.0-128 linux-headers-4.4.0-128-generic
  linux-headers-4.4.0-130 linux-headers-4.4.0-130-generic
  linux-headers-4.4.0-133 linux-headers-4.4.0-133-generic
  linux-image-4.4.0-127-generic linux-image-4.4.0-128-generic
  linux-image-4.4.0-130-generic linux-image-4.4.0-133-generic
  linux-image-extra-4.4.0-127-generic linux-image-extra-4.4.0-128-generic
  linux-image-extra-4.4.0-130-generic linux-image-extra-4.4.0-133-generic
  linux-signed-image-4.4.0-127-generic linux-signed-image-4.4.0-128-generic
  linux-signed-image-4.4.0-130-generic linux-signed-image-4.4.0-133-generic
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 9 not to upgrade.
sinc-lab@sinclab-desktop:~$ cd Downloads/
sinc-lab@sinclab-desktop:~/Downloads$ wget  https://github.com/bazelbuild/bazel/                                                                                                                                                             releases/download/0.16.1/bazel-0.16.1-installer-linux-x86_64.sh
--2018-08-24 15:04:28--  https://github.com/bazelbuild/bazel/releases/download/0                                                                                                                                                             .16.1/bazel-0.16.1-installer-linux-x86_64.sh
Resolving github.com (github.com)... 13.229.188.59, 13.250.177.223, 52.74.223.11                                                                                                                                                             9
Connecting to github.com (github.com)|13.229.188.59|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/207737                                                                                                                                                             73/615338fc-9f23-11e8-8d4f-4c536b6c47f7?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-C                                                                                                                                                             redential=AKIAIWNJYAX4CSVEH53A%2F20180824%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-                                                                                                                                                             Date=20180824T070428Z&X-Amz-Expires=300&X-Amz-Signature=2af894073c8eae9ae03373fb                                                                                                                                                             af5496c77ef97087df69c58107a93cdb84ba74b1&X-Amz-SignedHeaders=host&actor_id=0&res                                                                                                                                                             ponse-content-disposition=attachment%3B%20filename%3Dbazel-0.16.1-installer-linu                                                                                                                                                             x-x86_64.sh&response-content-type=application%2Foctet-stream [following]
--2018-08-24 15:04:29--  https://github-production-release-asset-2e65be.s3.amazo                                                                                                                                                             naws.com/20773773/615338fc-9f23-11e8-8d4f-4c536b6c47f7?X-Amz-Algorithm=AWS4-HMAC                                                                                                                                                             -SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180824%2Fus-east-1%2Fs3%2Faws4                                                                                                                                                             _request&X-Amz-Date=20180824T070428Z&X-Amz-Expires=300&X-Amz-Signature=2af894073                                                                                                                                                             c8eae9ae03373fbaf5496c77ef97087df69c58107a93cdb84ba74b1&X-Amz-SignedHeaders=host                                                                                                                                                             &actor_id=0&response-content-disposition=attachment%3B%20filename%3Dbazel-0.16.1                                                                                                                                                             -installer-linux-x86_64.sh&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-produc                                                                                                                                                             tion-release-asset-2e65be.s3.amazonaws.com)... 52.216.22.11
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-pr                                                                                                                                                             oduction-release-asset-2e65be.s3.amazonaws.com)|52.216.22.11|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 162607198 (155M) [application/octet-stream]
Saving to: 'bazel-0.16.1-installer-linux-x86_64.sh’

bazel-0.16.1-instal 100%[===================>] 155.07M  6.58MB/s    in 89s

2018-08-24 15:05:59 (1.74 MB/s) - 'bazel-0.16.1-installer-linux-x86_64.sh’ saved                                                                                                                                                              [162607198/162607198]

sinc-lab@sinclab-desktop:~/Downloads$ chmod +x bazel-<version>-installer-linux-x                                                                                                                                                             86_64.sh
-bash: version: No such file or directory
sinc-lab@sinclab-desktop:~/Downloads$ chmod +x bazel-0.16.1-installer-linux-x86_                                                                                                                                                             64.sh
sinc-lab@sinclab-desktop:~/Downloads$ ./bazel-0.16.1-installer-linux-x86_64.sh
Bazel installer
---------------

Bazel is bundled with software licensed under the GPLv2 with Classpath exception                                                                                                                                                             .
You can find the sources next to the installer on our release page:
   https://github.com/bazelbuild/bazel/releases

# Release 0.16.1 (2018-08-13)

Baseline: 4f64b77a3dd8e4ccdc8077051927985f9578a3a5

Cherry picks:
   + 4c9a0c82d308d5df5c524e2a26644022ff525f3e:
     reduce the size of bazel's embedded jdk
   + d3228b61f633cdc5b3f740b641a0836f1bd79abd:
     remote: limit number of open tcp connections by default. Fixes
     #5491
   + 8ff87c164f48dbabe3b20becd00dde90c50d46f5:
     Fix autodetection of linker flags
   + c4622ac9205d2f1b42dac8c598e83113d39e7f11:
     Fix autodetection of -z linker flags
   + 10219659f58622d99034288cf9f491865f818218:
     blaze_util_posix.cc: fix order of #define
   + ab1f269017171223932e0da9bb539e8a17dd99ed:
     blaze_util_freebsd.cc: include path.h explicitly
   + 68e92b45a37f2142c768a56eb7ecfa484b8b22df:
     openjdk: update macOS openjdk image. Fixes #5532
   + f45c22407e6b00fcba706eb62141cb9036bd38d7:
     Set the start time of binary and JSON profiles to zero correctly.
   + bca1912853086b8e9a28a85a1b144ec0dc9717cc:
     remote: fix race on download error. Fixes #5047
   + 3842bd39e10612c7eef36c6048407e81bcd0a8fb:
     jdk: use parallel old gc and disable compact strings
   + 6bd0bdf5140525cb33dc2db068b210261d9df271:
     Add objc-fully-link to the list of actions that require the
     apple_env feature. This fixes apple_static_library functionality.
   + f330439fb970cfa17c70fc59c1458bb1c31c9522:
     Add the action_names_test_files target to the OSS version of
     tools/buils_defs/cc/BUILD.
   + d215b64362c4ede61c8ba87b5f3f57bce4785d15:
     Fix StackOverflowError on Windows. Fixes #5730
   + 366da4cf27b7f957ef39f89206db77fa2ac289df:
     In java_rules_skylark depend on the javabase through
     //tools/jdk:current_java_runtime
   + 30c601dc13d9e1b40a57434c022c888c7578cc56:
     Don't use @local_jdk for jni headers
   + c56699db5f9173739ba3ac55aa9fa69b6457a99b:
     'DumpPlatformClasspath' now dumps the current JDK's default
     platform classpath

This release is a patch release that contains fixes for several serious
regressions that were found after the release of Bazel 0.16.0.

In particular this release resolves the following issues:

 - Bazel crashes with a StackOverflowError on Windows (See #5730)
 - Bazel requires a locally installed JDK and does not fall back
   to the embedded JDK (See #5744)
 - Bazel fails to build for Homebrew on macOS El Capitan (See #5777)
 - A regression in apple_static_library (See #5683)

Please watch our blog for a more detailed release announcement.

## Build informations
   - [Commit](https://github.com/bazelbuild/bazel/commit/2da247f)

The Bazel installer must have write access to /usr/local/bin!
Consider using the --user flag to install Bazel under /home/sinc-lab/bin instead                                                                                                                                                             .

Usage: ./bazel-0.16.1-installer-linux-x86_64.sh [options]
Options are:
  --prefix=/some/path set the prefix path (default=/usr/local).
  --bin= set the binary folder path (default=%prefix%/bin).
  --base= set the base install path (default=%prefix%/lib/bazel).
  --user configure for user install, expands to:
      --bin=$HOME/bin --base=$HOME/.bazel
  --skip-uncompress skip uncompressing the base image until the
      first bazel invocation
sinc-lab@sinclab-desktop:~/Downloads$ ./bazel-0.16.1-installer-linux-x86_64.sh -                                                                                                                                                             -bin
Bazel installer
---------------

Bazel is bundled with software licensed under the GPLv2 with Classpath exception                                                                                                                                                             .
You can find the sources next to the installer on our release page:
   https://github.com/bazelbuild/bazel/releases

# Release 0.16.1 (2018-08-13)

Baseline: 4f64b77a3dd8e4ccdc8077051927985f9578a3a5

Cherry picks:
   + 4c9a0c82d308d5df5c524e2a26644022ff525f3e:
     reduce the size of bazel's embedded jdk
   + d3228b61f633cdc5b3f740b641a0836f1bd79abd:
     remote: limit number of open tcp connections by default. Fixes
     #5491
   + 8ff87c164f48dbabe3b20becd00dde90c50d46f5:
     Fix autodetection of linker flags
   + c4622ac9205d2f1b42dac8c598e83113d39e7f11:
     Fix autodetection of -z linker flags
   + 10219659f58622d99034288cf9f491865f818218:
     blaze_util_posix.cc: fix order of #define
   + ab1f269017171223932e0da9bb539e8a17dd99ed:
     blaze_util_freebsd.cc: include path.h explicitly
   + 68e92b45a37f2142c768a56eb7ecfa484b8b22df:
     openjdk: update macOS openjdk image. Fixes #5532
   + f45c22407e6b00fcba706eb62141cb9036bd38d7:
     Set the start time of binary and JSON profiles to zero correctly.
   + bca1912853086b8e9a28a85a1b144ec0dc9717cc:
     remote: fix race on download error. Fixes #5047
   + 3842bd39e10612c7eef36c6048407e81bcd0a8fb:
     jdk: use parallel old gc and disable compact strings
   + 6bd0bdf5140525cb33dc2db068b210261d9df271:
     Add objc-fully-link to the list of actions that require the
     apple_env feature. This fixes apple_static_library functionality.
   + f330439fb970cfa17c70fc59c1458bb1c31c9522:
     Add the action_names_test_files target to the OSS version of
     tools/buils_defs/cc/BUILD.
   + d215b64362c4ede61c8ba87b5f3f57bce4785d15:
     Fix StackOverflowError on Windows. Fixes #5730
   + 366da4cf27b7f957ef39f89206db77fa2ac289df:
     In java_rules_skylark depend on the javabase through
     //tools/jdk:current_java_runtime
   + 30c601dc13d9e1b40a57434c022c888c7578cc56:
     Don't use @local_jdk for jni headers
   + c56699db5f9173739ba3ac55aa9fa69b6457a99b:
     'DumpPlatformClasspath' now dumps the current JDK's default
     platform classpath

This release is a patch release that contains fixes for several serious
regressions that were found after the release of Bazel 0.16.0.

In particular this release resolves the following issues:

 - Bazel crashes with a StackOverflowError on Windows (See #5730)
 - Bazel requires a locally installed JDK and does not fall back
   to the embedded JDK (See #5744)
 - Bazel fails to build for Homebrew on macOS El Capitan (See #5777)
 - A regression in apple_static_library (See #5683)

Please watch our blog for a more detailed release announcement.

## Build informations
   - [Commit](https://github.com/bazelbuild/bazel/commit/2da247f)
Usage: ./bazel-0.16.1-installer-linux-x86_64.sh [options]
Options are:
  --prefix=/some/path set the prefix path (default=/usr/local).
  --bin= set the binary folder path (default=%prefix%/bin).
  --base= set the base install path (default=%prefix%/lib/bazel).
  --user configure for user install, expands to:
      --bin=$HOME/bin --base=$HOME/.bazel
  --skip-uncompress skip uncompressing the base image until the
      first bazel invocation
sinc-lab@sinclab-desktop:~/Downloads$ ./bazel-0.16.1-installer-linux-x86_64.sh --user
Bazel installer
---------------

Bazel is bundled with software licensed under the GPLv2 with Classpath exception.
You can find the sources next to the installer on our release page:
   https://github.com/bazelbuild/bazel/releases

# Release 0.16.1 (2018-08-13)

Baseline: 4f64b77a3dd8e4ccdc8077051927985f9578a3a5

Cherry picks:
   + 4c9a0c82d308d5df5c524e2a26644022ff525f3e:
     reduce the size of bazel's embedded jdk
   + d3228b61f633cdc5b3f740b641a0836f1bd79abd:
     remote: limit number of open tcp connections by default. Fixes
     #5491
   + 8ff87c164f48dbabe3b20becd00dde90c50d46f5:
     Fix autodetection of linker flags
   + c4622ac9205d2f1b42dac8c598e83113d39e7f11:
     Fix autodetection of -z linker flags
   + 10219659f58622d99034288cf9f491865f818218:
     blaze_util_posix.cc: fix order of #define
   + ab1f269017171223932e0da9bb539e8a17dd99ed:
     blaze_util_freebsd.cc: include path.h explicitly
   + 68e92b45a37f2142c768a56eb7ecfa484b8b22df:
     openjdk: update macOS openjdk image. Fixes #5532
   + f45c22407e6b00fcba706eb62141cb9036bd38d7:
     Set the start time of binary and JSON profiles to zero correctly.
   + bca1912853086b8e9a28a85a1b144ec0dc9717cc:
     remote: fix race on download error. Fixes #5047
   + 3842bd39e10612c7eef36c6048407e81bcd0a8fb:
     jdk: use parallel old gc and disable compact strings
   + 6bd0bdf5140525cb33dc2db068b210261d9df271:
     Add objc-fully-link to the list of actions that require the
     apple_env feature. This fixes apple_static_library functionality.
   + f330439fb970cfa17c70fc59c1458bb1c31c9522:
     Add the action_names_test_files target to the OSS version of
     tools/buils_defs/cc/BUILD.
   + d215b64362c4ede61c8ba87b5f3f57bce4785d15:
     Fix StackOverflowError on Windows. Fixes #5730
   + 366da4cf27b7f957ef39f89206db77fa2ac289df:
     In java_rules_skylark depend on the javabase through
     //tools/jdk:current_java_runtime
   + 30c601dc13d9e1b40a57434c022c888c7578cc56:
     Don't use @local_jdk for jni headers
   + c56699db5f9173739ba3ac55aa9fa69b6457a99b:
     'DumpPlatformClasspath' now dumps the current JDK's default
     platform classpath

This release is a patch release that contains fixes for several serious
regressions that were found after the release of Bazel 0.16.0.

In particular this release resolves the following issues:

 - Bazel crashes with a StackOverflowError on Windows (See #5730)
 - Bazel requires a locally installed JDK and does not fall back
   to the embedded JDK (See #5744)
 - Bazel fails to build for Homebrew on macOS El Capitan (See #5777)
 - A regression in apple_static_library (See #5683)

Please watch our blog for a more detailed release announcement.

## Build informations
   - [Commit](https://github.com/bazelbuild/bazel/commit/2da247f)
Uncompressing......Extracting Bazel installation...
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
.

Bazel is now installed!

Make sure you have "/home/sinc-lab/bin" in your path. You can also activate bash
completion by adding the following line to your ~/.bashrc:
  source /home/sinc-lab/.bazel/bin/bazel-complete.bash

See http://bazel.build/docs/getting-started.html to start a new project!
sinc-lab@sinclab-desktop:~/Downloads$ export PATH="$PATH:$HOME/bin"
sinc-lab@sinclab-desktop:~/Downloads$ source ~/.bashrc
sinc-lab@sinclab-desktop:~/Downloads$ cd ../tensorflow/
sinc-lab@sinclab-desktop:~/tensorflow$ ./configure
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
You have bazel 0.16.1 installed.
Please specify the location of python. [Default is /home/sinc-lab/anaconda3/bin/python]:


Found possible Python library paths:
  /home/sinc-lab/anaconda3/lib/python3.6/site-packages
Please input the desired Python library path to use.  Default is [/home/sinc-lab/anaconda3/lib/python3.6/site-packages]
^Z
[1]+  Stopped                 ./configure
sinc-lab@sinclab-desktop:~/tensorflow$ ./configure
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
You have bazel 0.16.1 installed.
Please specify the location of python. [Default is /home/sinc-lab/anaconda3/bin/python]:


Found possible Python library paths:
  /home/sinc-lab/anaconda3/lib/python3.6/site-packages
Please input the desired Python library path to use.  Default is [/home/sinc-lab/anaconda3/lib/python3.6/site-packages]
/usr/lib/python2.7/dist-packages
Do you wish to build TensorFlow with jemalloc as malloc support? [Y/n]:
jemalloc as malloc support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]:
Google Cloud Platform support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Hadoop File System support? [Y/n]:
Hadoop File System support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Amazon AWS Platform support? [Y/n]:
Amazon AWS Platform support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Apache Kafka Platform support? [Y/n]:
Apache Kafka Platform support will be enabled for TensorFlow.

Do you wish to build TensorFlow with XLA JIT support? [y/N]:
No XLA JIT support will be enabled for TensorFlow.

Do you wish to build TensorFlow with GDR support? [y/N]:
No GDR support will be enabled for TensorFlow.

Do you wish to build TensorFlow with VERBS support? [y/N]:
No VERBS support will be enabled for TensorFlow.

Do you wish to build TensorFlow with nGraph support? [y/N]:
No nGraph support will be enabled for TensorFlow.

Do you wish to build TensorFlow with OpenCL SYCL support? [y/N]:
No OpenCL SYCL support will be enabled for TensorFlow.

Do you wish to build TensorFlow with CUDA support? [y/N]: y
CUDA support will be enabled for TensorFlow.

Please specify the CUDA SDK version you want to use. [Leave empty to default to CUDA 9.0]:


Please specify the location where CUDA 9.0 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]:


Traceback (most recent call last):
  File "./configure.py", line 1592, in <module>
    main()
  File "./configure.py", line 1527, in main
    set_tf_cuda_version(environ_cp)
  File "./configure.py", line 855, in set_tf_cuda_version
    (tf_cuda_version, cuda_toolkit_path_full))
NameError: name 'cuda_toolkit_path_full' is not defined
sinc-lab@sinclab-desktop:~/tensorflow$ ./configure
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
You have bazel 0.16.1 installed.
Please specify the location of python. [Default is /home/sinc-lab/anaconda3/bin/python]:


Found possible Python library paths:
  /home/sinc-lab/anaconda3/lib/python3.6/site-packages
Please input the desired Python library path to use.  Default is [/home/sinc-lab/anaconda3/lib/python3.6/site-packages]
/usr/lib/python2.7/dist-packages
Do you wish to build TensorFlow with jemalloc as malloc support? [Y/n]:
jemalloc as malloc support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]:
Google Cloud Platform support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Hadoop File System support? [Y/n]:
Hadoop File System support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Amazon AWS Platform support? [Y/n]:
Amazon AWS Platform support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Apache Kafka Platform support? [Y/n]:
Apache Kafka Platform support will be enabled for TensorFlow.

Do you wish to build TensorFlow with XLA JIT support? [y/N]:
No XLA JIT support will be enabled for TensorFlow.

Do you wish to build TensorFlow with GDR support? [y/N]:
No GDR support will be enabled for TensorFlow.

Do you wish to build TensorFlow with VERBS support? [y/N]:
No VERBS support will be enabled for TensorFlow.

Do you wish to build TensorFlow with nGraph support? [y/N]:
No nGraph support will be enabled for TensorFlow.

Do you wish to build TensorFlow with OpenCL SYCL support? [y/N]:
No OpenCL SYCL support will be enabled for TensorFlow.

Do you wish to build TensorFlow with CUDA support? [y/N]:
No CUDA support will be enabled for TensorFlow.

Do you wish to download a fresh release of clang? (Experimental) [y/N]: ^Z
[2]+  Stopped                 ./configure
sinc-lab@sinclab-desktop:~/tensorflow$ ./configure
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
You have bazel 0.16.1 installed.
Please specify the location of python. [Default is /home/sinc-lab/anaconda3/bin/python]:


Found possible Python library paths:
  /home/sinc-lab/anaconda3/lib/python3.6/site-packages
Please input the desired Python library path to use.  Default is [/home/sinc-lab/anaconda3/lib/python3.6/site-packages]
/usr/lib/python2.7/dist-packages
Do you wish to build TensorFlow with jemalloc as malloc support? [Y/n]:
jemalloc as malloc support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]:
Google Cloud Platform support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Hadoop File System support? [Y/n]:
Hadoop File System support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Amazon AWS Platform support? [Y/n]:
Amazon AWS Platform support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Apache Kafka Platform support? [Y/n]:
Apache Kafka Platform support will be enabled for TensorFlow.

Do you wish to build TensorFlow with XLA JIT support? [y/N]:
No XLA JIT support will be enabled for TensorFlow.

Do you wish to build TensorFlow with GDR support? [y/N]:
No GDR support will be enabled for TensorFlow.

Do you wish to build TensorFlow with VERBS support? [y/N]:
No VERBS support will be enabled for TensorFlow.

Do you wish to build TensorFlow with nGraph support? [y/N]:
No nGraph support will be enabled for TensorFlow.

Do you wish to build TensorFlow with OpenCL SYCL support? [y/N]:
No OpenCL SYCL support will be enabled for TensorFlow.

Do you wish to build TensorFlow with CUDA support? [y/N]: y
CUDA support will be enabled for TensorFlow.

Please specify the CUDA SDK version you want to use. [Leave empty to default to CUDA 9.0]: 9.0


Please specify the location where CUDA 9.0 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]:


Traceback (most recent call last):
  File "./configure.py", line 1592, in <module>
    main()
  File "./configure.py", line 1527, in main
    set_tf_cuda_version(environ_cp)
  File "./configure.py", line 855, in set_tf_cuda_version
    (tf_cuda_version, cuda_toolkit_path_full))
NameError: name 'cuda_toolkit_path_full' is not defined
sinc-lab@sinclab-desktop:~/tensorflow$

猜你喜欢

转载自blog.csdn.net/vslyu/article/details/82026732
今日推荐