Issue 1:
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10

TensorFlow installed from (source or binary): Source

TensorFlow version: 1.13

Python version: 3.7.2

Installed using virtualenv? pip? conda?: pip

Bazel version (if compiling from source): 0.21.0

GCC/Compiler version (if compiling from source):

CUDA/cuDNN version: 10.1/7.5.0

GPU model and memory: rtx 2070 moblie version (none maxq) 8gb

Describe the problem

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:

Any other info / logs

C:\tensorflow\tensorflow>bazel build --config=opt --config=cuda --define=no_tensorflow_py_deps=true //tensorflow/tools/pip_package:build_pip_package

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:

c:\tensorflow\tensorflow/.bazelrc

WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.

WARNING: Option 'experimental_shortened_obj_file_path' is deprecated

INFO: Invocation ID: 078842cd-7467-4a1e-8aa2-c216dbc9c091

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 (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of tf.distributions to tfp.distributions.

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 (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of tf.distributions to tfp.distributions.

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 (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of tf.distributions to tfp.distributions.

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.

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.

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 (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of tf.contrib.distributions to tfp.distributions.

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 (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of tf.distributions to tfp.distributions.

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 (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of tf.contrib.distributions to tfp.distributions.

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 (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of tf.contrib.distributions to tfp.distributions.

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 (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of tf.contrib.distributions to tfp.distributions.

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 (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of tf.contrib.distributions to tfp.distributions.

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 (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of tf.distributions to tfp.distributions.

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 (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of tf.contrib.distributions to tfp.distributions.

INFO: Analysed target //tensorflow/tools/pip_package:build_pip_package (0 packages loaded, 0 targets configured).

INFO: Found 1 target...

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

cd C:/users/moura/_bazel_moura/wvk7snnt/execroot/org_tensorflow

SET CUDA_TOOLKIT_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1

SET CUDNN_INSTALL_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1

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;

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;

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

SET PWD=/proc/self/cwd

SET PYTHON_BIN_PATH=C:/Users/moura/AppData/Local/Programs/Python/Python37-32/python.exe

SET PYTHON_LIB_PATH=C:/Users/moura/AppData/Local/Programs/Python/Python37-32/lib/site-packages

SET TEMP=C:\Users\moura\AppData\Local\Temp

SET TF_CUDA_CLANG=0

SET TF_CUDA_COMPUTE_CAPABILITIES=7.5

SET TF_CUDA_VERSION=10.1

SET TF_CUDNN_VERSION=7

SET TF_NEED_CUDA=1

SET TF_NEED_OPENCL_SYCL=0

SET TF_NEED_ROCM=0

SET TMP=C:\Users\moura\AppData\Local\Temp

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

Execution platform: @bazel_tools//platforms:host_platform

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

api_implementation.o : error LNK2019: unresolved external symbol __imp_PyModule_AddIntConstant referenced in function PyInit__api_implementation

api_implementation.o : error LNK2019: unresolved external symbol __imp_PyModule_Create2 referenced in function PyInit__api_implementation

bazel-out/x64_windows-opt/genfiles/external/local_config_python/python37.lib : warning LNK4272: library machine type 'X86' conflicts with target machine type 'x64'

bazel-out/x64_windows-opt/bin/external/protobuf_archive/python/google/protobuf/internal/_api_implementation.so : fatal error LNK1120: 2 unresolved externals

Target //tensorflow/tools/pip_package:build_pip_package failed to build

INFO: Elapsed time: 3.046s, Critical Path: 0.15s

INFO: 0 processes.

FAILED: Build did NOT complete successfully

Issue 2:
The code https://www.tensorflow.org/code/tensorflow/examples/tutorials/mnist/mnist_softmax.py

does not run on TensorFlow (Windows installation)

What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?

Quite similar problem reported here: http://stackoverflow.com/questions/40467893/running-mnist-softmax-py-on-tensorflow-installed-with-docker However, no solution there...

Environment info

Operating System: Windows 10 pro (Intel(R) Core(TM) i7 6500U CPU)

TensorFlow installed: pip install -U tensorflow; Python 3.5.2 :: Anaconda custom (64-bit)

Traceback (most recent call last):

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 1254, in do_open

h.request(req.get_method(), req.selector, req.data, headers)

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\http\client.py", line 1106, in request

self._send_request(method, url, body, headers)

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\http\client.py", line 1151, in _send_request

self.endheaders(body)

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\http\client.py", line 1102, in endheaders

self._send_output(message_body)

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\http\client.py", line 934, in _send_output

self.send(msg)

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\http\client.py", line 877, in send

self.connect()

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\http\client.py", line 849, in connect

(self.host,self.port), self.timeout, self.source_address)

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\socket.py", line 711, in create_connection

raise err

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\socket.py", line 702, in create_connection

sock.connect(sa)

TimeoutError: [WinError 10060]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "", line 1, in

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 714, in runfile

execfile(filename, namespace)

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 89, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/Users/natlun/Documents/Python Scripts/mnist_softmax03.py", line 92, in

tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\python\platform\app.py", line 44, in run

_sys.exit(main(_sys.argv[:1] + flags_passthrough))

File "C:/Users/natlun/Documents/Python Scripts/mnist_softmax03.py", line 20, in main

mnist = input_data.read_data_sets(FLAGS.data_dir, one_hot=True)

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

SOURCE_URL + TRAIN_IMAGES)

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\base.py", line 208, in maybe_download

temp_file_name, _ = urlretrieve_with_retry(source_url)

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\base.py", line 165, in wrapped_fn

return fn(*args, **kwargs)

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

return urllib.request.urlretrieve(url, filename)

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 188, in urlretrieve

with contextlib.closing(urlopen(url, data)) as fp:

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 163, in urlopen

return opener.open(url, data, timeout)

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 466, in open

response = self._open(req, data)

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 484, in _open

'_open', req)

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 444, in _call_chain

result = func(*args)

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 1282, in http_open

return self.do_open(http.client.HTTPConnection, req)

File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 1256, in do_open

raise URLError(err)

urllib.error.URLError: <urlopen error [WinError 10060]>