<p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Win 7</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: No</li>
<li>TensorFlow installed from (source or binary): installation from <a href="https://www.tensorflow.org/install/pip" rel="nofollow">https://www.tensorflow.org/install/pip</a></li>
<li>TensorFlow version: 1.13</li>
<li>Python version: 3.6.8</li>
<li>Installed using virtualenv? pip? conda?: both pip, virtualenv</li>
<li>Bazel version (if compiling from source):no</li>
<li>GCC/Compiler version (if compiling from source): no</li>
<li>CUDA/cuDNN version: tried with all CUDA8, CUDA7.5,CUDA9</li>
<li>GPU model and memory:</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong><br>
I tried different version of python and tensorflow and check the script for selecting CUDA version,  it has the same error. Also I installed airflow but desn't work!!!!!!<br>
<strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong><br>
Traceback (most recent call last):<br>
File "C:\Users\azak\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_t<br>
ensorflow.py", line 58, in <br>
from tensorflow.python.pywrap_tensorflow_internal import *<br>
File "C:\Users\azak\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_t<br>
ensorflow_internal.py", line 28, in <br>
_pywrap_tensorflow_internal = swig_import_helper()<br>
File "C:\Users\azak\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_t<br>
ensorflow_internal.py", line 24, in swig_import_helper<br>
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br>
File "C:\Users\azak\AppData\Local\Programs\Python\Python36\lib\imp.py", line 243, in load_module<br>
return load_dynamic(name, filename, file)<br>
File "C:\Users\azak\AppData\Local\Programs\Python\Python36\lib\imp.py", line 343, in load_dynamic<br>
return _load(spec)<br>
ImportError: DLL load failed with error code -1073741795</p>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "", line 1, in <br>
File "C:\Users\azak\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_<em>init</em>_.py", l<br>
ine 24, in <br>
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import<br>
File "C:\Users\azak\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python_<em>init</em>_<br>
.py", line 49, in <br>
from tensorflow.python import pywrap_tensorflow<br>
File "C:\Users\azak\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_t<br>
ensorflow.py", line 74, in <br>
raise ImportError(msg)<br>
ImportError: Traceback (most recent call last):<br>
File "C:\Users\azak\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_t<br>
ensorflow.py", line 58, in <br>
from tensorflow.python.pywrap_tensorflow_internal import *<br>
File "C:\Users\azak\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_t<br>
ensorflow_internal.py", line 28, in <br>
_pywrap_tensorflow_internal = swig_import_helper()<br>
File "C:\Users\azak\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_t<br>
ensorflow_internal.py", line 24, in swig_import_helper<br>
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br>
File "C:\Users\azak\AppData\Local\Programs\Python\Python36\lib\imp.py", line 243, in load_module<br>
return load_dynamic(name, filename, file)<br>
File "C:\Users\azak\AppData\Local\Programs\Python\Python36\lib\imp.py", line 343, in load_dynamic<br>
return _load(spec)<br>
ImportError: DLL load failed with error code -1073741795</p>
<p dir="auto">Failed to load the native TensorFlow runtime.</p>
<p dir="auto">See <a href="https://www.tensorflow.org/install/errors" rel="nofollow">https://www.tensorflow.org/install/errors</a></p>
<p dir="auto">for some common reasons and solutions.  Include the entire stack trace<br>
above this error message when asking for help.</p>
<p dir="auto"><strong>Any other info / logs</strong><br>
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p>
<p dir="auto">Hi<br>
When I tried<br>
<code class="notranslate">bazel build -c opt --config=cuda --local_resources 2048,.5,1.0 //tensorflow/tools/pip_package:build_pip_package</code></p>
<p dir="auto">, I see the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: /XXXXX/tensorflow/python/BUILD:1926:1: Linking of rule '//tensorflow/python:_pywrap_tensorflow.so' failed: link_dynamic_library.sh failed: error executing command external/bazel_tools/tools/cpp/link_dynamic_library.sh no ignored ignored ignored external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -shared -o ... (remaining 396 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
clang: warning: argument unused during compilation: '-pthread'
duplicate symbol __Z14tf_git_versionv in:
    bazel-out/local_darwin-py3-opt/bin/tensorflow/core/libframework_internal.pic.lo(version_info.pic.o)
    bazel-out/local_darwin-py3-opt/bin/tensorflow/core/libversion_lib.pic.a(version_info.pic.o)
duplicate symbol __Z19tf_compiler_versionv in:
    bazel-out/local_darwin-py3-opt/bin/tensorflow/core/libframework_internal.pic.lo(version_info.pic.o)
    bazel-out/local_darwin-py3-opt/bin/tensorflow/core/libversion_lib.pic.a(version_info.pic.o)
ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /XXXX/tensorflow/tensorflow/tools/pip_package/BUILD:81:1 Linking of rule '//tensorflow/python:_pywrap_tensorflow.so' failed: link_dynamic_library.sh failed: error executing command external/bazel_tools/tools/cpp/link_dynamic_library.sh no ignored ignored ignored external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -shared -o ... (remaining 396 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
INFO: Elapsed time: 2.094s, Critical Path: 1.50s"><pre lang="INFO:" class="notranslate"><code class="notranslate">ERROR: /XXXXX/tensorflow/python/BUILD:1926:1: Linking of rule '//tensorflow/python:_pywrap_tensorflow.so' failed: link_dynamic_library.sh failed: error executing command external/bazel_tools/tools/cpp/link_dynamic_library.sh no ignored ignored ignored external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -shared -o ... (remaining 396 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
clang: warning: argument unused during compilation: '-pthread'
duplicate symbol __Z14tf_git_versionv in:
    bazel-out/local_darwin-py3-opt/bin/tensorflow/core/libframework_internal.pic.lo(version_info.pic.o)
    bazel-out/local_darwin-py3-opt/bin/tensorflow/core/libversion_lib.pic.a(version_info.pic.o)
duplicate symbol __Z19tf_compiler_versionv in:
    bazel-out/local_darwin-py3-opt/bin/tensorflow/core/libframework_internal.pic.lo(version_info.pic.o)
    bazel-out/local_darwin-py3-opt/bin/tensorflow/core/libversion_lib.pic.a(version_info.pic.o)
ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /XXXX/tensorflow/tensorflow/tools/pip_package/BUILD:81:1 Linking of rule '//tensorflow/python:_pywrap_tensorflow.so' failed: link_dynamic_library.sh failed: error executing command external/bazel_tools/tools/cpp/link_dynamic_library.sh no ignored ignored ignored external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -shared -o ... (remaining 396 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
INFO: Elapsed time: 2.094s, Critical Path: 1.50s
</code></pre></div>
<p dir="auto">following bazel version:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Build label: 0.4.0-homebrew
Build target: bazel-out/local-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Wed Nov 2 19:15:37 2016 (1478114137)
Build timestamp: 1478114137
Build timestamp as int: 1478114137```"><pre class="notranslate"><code class="notranslate">Build label: 0.4.0-homebrew
Build target: bazel-out/local-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Wed Nov 2 19:15:37 2016 (1478114137)
Build timestamp: 1478114137
Build timestamp as int: 1478114137```
</code></pre></div>