<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10</li>
<li>TensorFlow installed from (source or binary): Source</li>
<li>TensorFlow version: 1.13</li>
<li>Python version: 3.7.2</li>
<li>Installed using virtualenv? pip? conda?: pip</li>
<li>Bazel version (if compiling from source): 0.21.0</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version: 10.1/7.5.0</li>
<li>GPU model and memory: rtx 2070 moblie version (none maxq) 8gb</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong><br>
I have solved all the previous issues while finishing the build those two last errors have appeared please help me with that it's starting to get morally painful here is the output after the second run:</p>
<p dir="auto"><strong>Any other info / logs</strong><br>
C:\tensorflow\tensorflow&gt;bazel build --config=opt --config=cuda --define=no_tensorflow_py_deps=true //tensorflow/tools/pip_package:build_pip_package<br>
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:<br>
c:\tensorflow\tensorflow/.bazelrc<br>
WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.<br>
WARNING: Option 'experimental_shortened_obj_file_path' is deprecated<br>
INFO: Invocation ID: 078842cd-7467-4a1e-8aa2-c216dbc9c091<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/python/BUILD:2986:1: in py_library rule //tensorflow/python:standard_ops: target '//tensorflow/python:standard_ops' depends on deprecated target '//tensorflow/python/ops/distributions:distributions': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of <code class="notranslate">tf.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/python/BUILD:77:1: in py_library rule //tensorflow/python:no_contrib: target '//tensorflow/python:no_contrib' depends on deprecated target '//tensorflow/python/ops/distributions:distributions': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of <code class="notranslate">tf.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/metrics/BUILD:16:1: in py_library rule //tensorflow/contrib/metrics:metrics_py: target '//tensorflow/contrib/metrics:metrics_py' depends on deprecated target '//tensorflow/python/ops/distributions:distributions': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of <code class="notranslate">tf.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/learn/BUILD:17:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:exporter': No longer supported. Switch to SavedModel immediately.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/learn/BUILD:17:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:gc': No longer supported. Switch to SavedModel immediately.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/seq2seq/BUILD:23:1: in py_library rule //tensorflow/contrib/seq2seq:seq2seq_py: target '//tensorflow/contrib/seq2seq:seq2seq_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of <code class="notranslate">tf.contrib.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/seq2seq/BUILD:23:1: in py_library rule //tensorflow/contrib/seq2seq:seq2seq_py: target '//tensorflow/contrib/seq2seq:seq2seq_py' depends on deprecated target '//tensorflow/python/ops/distributions:distributions': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of <code class="notranslate">tf.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/timeseries/python/timeseries/BUILD:356:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries:ar_model: target '//tensorflow/contrib/timeseries/python/timeseries:ar_model' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of <code class="notranslate">tf.contrib.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/timeseries/python/timeseries/state_space_models/BUILD:233:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries/state_space_models:filtering_postprocessor: target '//tensorflow/contrib/timeseries/python/timeseries/state_space_models:filtering_postprocessor' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of <code class="notranslate">tf.contrib.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/timeseries/python/timeseries/state_space_models/BUILD:76:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries/state_space_models:kalman_filter: target '//tensorflow/contrib/timeseries/python/timeseries/state_space_models:kalman_filter' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of <code class="notranslate">tf.contrib.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/bayesflow/BUILD:17:1: in py_library rule //tensorflow/contrib/bayesflow:bayesflow_py: target '//tensorflow/contrib/bayesflow:bayesflow_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of <code class="notranslate">tf.contrib.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/gan/BUILD:136:1: in py_library rule //tensorflow/contrib/gan:losses_impl: target '//tensorflow/contrib/gan:losses_impl' depends on deprecated target '//tensorflow/python/ops/distributions:distributions': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of <code class="notranslate">tf.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/BUILD:13:1: in py_library rule //tensorflow/contrib:contrib_py: target '//tensorflow/contrib:contrib_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of <code class="notranslate">tf.contrib.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
INFO: Analysed target //tensorflow/tools/pip_package:build_pip_package (0 packages loaded, 0 targets configured).<br>
INFO: Found 1 target...<br>
ERROR: C:/users/moura/_bazel_moura/wvk7snnt/external/protobuf_archive/BUILD:626:1: Linking of rule '@protobuf_archive//:python/google/protobuf/internal/_api_implementation.so' failed (Exit 1120): link.exe failed: error executing command<br>
cd C:/users/moura/_bazel_moura/wvk7snnt/execroot/org_tensorflow<br>
SET CUDA_TOOLKIT_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1<br>
SET CUDNN_INSTALL_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1<br>
SET INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE;C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt;C:\Program Files (x86)\Windows Kits\8.1\include\shared;C:\Program Files (x86)\Windows Kits\8.1\include\um;C:\Program Files (x86)\Windows Kits\8.1\include\winrt;<br>
SET LIB=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64;<br>
SET PATH=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64;C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;C:\WINDOWS\Microsoft.NET\Framework64;C:\Program Files (x86)\Windows Kits\8.1\bin\x64;C:\Program Files (x86)\Windows Kits\8.1\bin\x86;;C:\WINDOWS\system32<br>
SET PWD=/proc/self/cwd<br>
SET PYTHON_BIN_PATH=C:/Users/moura/AppData/Local/Programs/Python/Python37-32/python.exe<br>
SET PYTHON_LIB_PATH=C:/Users/moura/AppData/Local/Programs/Python/Python37-32/lib/site-packages<br>
SET TEMP=C:\Users\moura\AppData\Local\Temp<br>
SET TF_CUDA_CLANG=0<br>
SET TF_CUDA_COMPUTE_CAPABILITIES=7.5<br>
SET TF_CUDA_VERSION=10.1<br>
SET TF_CUDNN_VERSION=7<br>
SET TF_NEED_CUDA=1<br>
SET TF_NEED_OPENCL_SYCL=0<br>
SET TF_NEED_ROCM=0<br>
SET TMP=C:\Users\moura\AppData\Local\Temp<br>
C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/link.exe /nologo /DLL /SUBSYSTEM:CONSOLE /MACHINE:X64 @bazel-out/x64_windows-opt/bin/external/protobuf_archive/python/google/protobuf/internal/_api_implementation.so-2.params<br>
Execution platform: @bazel_tools//platforms:host_platform<br>
Creating library bazel-out/x64_windows-opt/bin/external/protobuf_archive/python/google/protobuf/internal/python/google/protobuf/internal/lib_api_implementation.so.ifso and object bazel-out/x64_windows-opt/bin/external/protobuf_archive/python/google/protobuf/internal/python/google/protobuf/internal/lib_api_implementation.so.exp<br>
api_implementation.o : error LNK2019: unresolved external symbol __imp_PyModule_AddIntConstant referenced in function PyInit__api_implementation<br>
api_implementation.o : error LNK2019: unresolved external symbol __imp_PyModule_Create2 referenced in function PyInit__api_implementation<br>
bazel-out/x64_windows-opt/genfiles/external/local_config_python/python37.lib : warning LNK4272: library machine type 'X86' conflicts with target machine type 'x64'<br>
bazel-out/x64_windows-opt/bin/external/protobuf_archive/python/google/protobuf/internal/_api_implementation.so : fatal error LNK1120: 2 unresolved externals<br>
Target //tensorflow/tools/pip_package:build_pip_package failed to build<br>
INFO: Elapsed time: 3.046s, Critical Path: 0.15s<br>
INFO: 0 processes.<br>
FAILED: Build did NOT complete successfully</p>
<p dir="auto">The code <a href="https://www.tensorflow.org/code/tensorflow/examples/tutorials/mnist/mnist_softmax.py" rel="nofollow">https://www.tensorflow.org/code/tensorflow/examples/tutorials/mnist/mnist_softmax.py</a><br>
does not run on TensorFlow (Windows installation)</p>
<h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3>
<p dir="auto">Quite similar problem reported here: <a href="http://stackoverflow.com/questions/40467893/running-mnist-softmax-py-on-tensorflow-installed-with-docker" rel="nofollow">http://stackoverflow.com/questions/40467893/running-mnist-softmax-py-on-tensorflow-installed-with-docker</a> However, no solution there...</p>
<h3 dir="auto">Environment info</h3>
<h2 dir="auto">Operating System: Windows 10 pro (Intel(R) Core(TM) i7 6500U CPU)<br>
TensorFlow installed: pip install -U tensorflow; Python 3.5.2 :: Anaconda custom (64-bit)</h2>
<p dir="auto">Traceback (most recent call last):<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 1254, in do_open<br>
h.request(req.get_method(), req.selector, req.data, headers)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\http\client.py", line 1106, in request<br>
self._send_request(method, url, body, headers)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\http\client.py", line 1151, in _send_request<br>
self.endheaders(body)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\http\client.py", line 1102, in endheaders<br>
self._send_output(message_body)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\http\client.py", line 934, in _send_output<br>
self.send(msg)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\http\client.py", line 877, in send<br>
self.connect()<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\http\client.py", line 849, in connect<br>
(self.host,self.port), self.timeout, self.source_address)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\socket.py", line 711, in create_connection<br>
raise err<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\socket.py", line 702, in create_connection<br>
sock.connect(sa)<br>
TimeoutError: [WinError 10060]</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\natlun\AppData\Local\Continuum\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 714, in runfile<br>
execfile(filename, namespace)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 89, in execfile<br>
exec(compile(f.read(), filename, 'exec'), namespace)<br>
File "C:/Users/natlun/Documents/Python Scripts/mnist_softmax03.py", line 92, in <br>
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\python\platform\app.py", line 44, in run<br>
_sys.exit(main(_sys.argv[:1] + flags_passthrough))<br>
File "C:/Users/natlun/Documents/Python Scripts/mnist_softmax03.py", line 20, in main<br>
mnist = input_data.read_data_sets(FLAGS.data_dir, one_hot=True)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py", line 211, in read_data_sets<br>
SOURCE_URL + TRAIN_IMAGES)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\base.py", line 208, in maybe_download<br>
temp_file_name, _ = urlretrieve_with_retry(source_url)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\base.py", line 165, in wrapped_fn<br>
return fn(*args, **kwargs)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\base.py", line 190, in urlretrieve_with_retry<br>
return urllib.request.urlretrieve(url, filename)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 188, in urlretrieve<br>
with contextlib.closing(urlopen(url, data)) as fp:<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 163, in urlopen<br>
return opener.open(url, data, timeout)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 466, in open<br>
response = self._open(req, data)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 484, in _open<br>
'_open', req)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 444, in _call_chain<br>
result = func(*args)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 1282, in http_open<br>
return self.do_open(http.client.HTTPConnection, req)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 1256, in do_open<br>
raise URLError(err)<br>
urllib.error.URLError: &lt;urlopen error [WinError 10060]&gt;</p>