You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was excited to see tensorflow, but as many other users, we are on Windows, would be nice to see this support happen. Will you accept Windows port contributions?
Reacted by Rizky Luthfianto, Christopher Currens, Jonas Meinertz Hansen, Austin Horning, Tom Rochette, JP, 张亚军, Wijono, Sammy Guergachi, Markus Stöger and 82 more
Reacted by Chanchana Sornsoontorn, Gabriel Goh, Ricardo Medina and Vijay Santhanam
I would like to use TensorFlow on Windows without Docker, in order to use GPU compute. Using Docker in this case is not using a Windows container, but a Linux virtual machine on Hyper-V or VirtualBox, and so the GPU will not be passed through.
Reacted by Erfan Noury, James Pacileo, carlos-pinto-coelho, Uğur Güney, syb0rg, Chanchana Sornsoontorn, Yury Parfenov, Brans, Julian Gilyadov, Lin LI and 11 more
Would love to use TensorFlow on Windows (native, not in a VM).
Reacted by Ivan Karlovich, ricardo kloss, Brans, John Canessa, Mark Litwintschik, Franz Graf, Bear Huang, JerrilynZapien, Diego R. Santos, Kirtan Gajjar and 4 more
Judging by the use of bazel across the documentation, I assume its a matter of waiting for bazel to support windows. Is there anything specific to Tensorflow that would need to be addressed for windows to be supported, or is just bazel?
@KhabarlakKonstantin It seems OpenCL configuration is just added into ./configure but not turned off by default on Windows, so please manually run that script or add export TF_NEED_OPENCL=0 before echo "" | ./configure
pcloudy@PCLOUDY1-W MSYS ~/workspace/tensorflow
$ ./configure
~/workspace/tensorflow ~/workspace/tensorflow
Please specify the location of python. [Default is /c/Program Files/Anaconda3/python]:
Found possible Python library paths:
C:\Program Files\Anaconda3\lib\site-packages
C:\Program Files\Anaconda3
Please input the desired Python library path to use. Default is [C:\Program Files\Anaconda3\lib\site-packages]
Using python library path: C:\Program Files\Anaconda3\lib\site-packages
Junction created for util\python\python_include <<===>> C:\Program Files\Anaconda3\include
Junction created for util\python\python_lib <<===>> C:\Program Files\Anaconda3\lib\site-packages
Junction created for third_party\py\numpy\numpy_include <<===>> C:\Program Files\Anaconda3\lib\site-packages\numpy\core\include
Do you wish to build TensorFlow with OpenCL support? [y/N] n
No OpenCL support will be enabled for TensorFlow
Configuration finished
After fixing _Pragma, this is what I get in the same file:
C:/tensorflow/tensorflow/core/kernels/parameterized_truncated_normal_op_gpu.cu.cc(168): error : more than
one operator "/" matches these operands: [C:\tensorflow\tensorflow\contrib\cmake\build\tf_core_gpu_kernels.v
cxproj]
@meteorcloudy Adding export TF_NEED_OPENCL=0 helped me to go a little further
Now I'm getting another error:
ERROR: C:/libs/tensorflow/tensorflow/core/BUILD:1115:1: Executing genrule //tensorflow/core:version_info_gen failed: bash failed: error executing command
cd C:/tmp/Bazel/44EoGNou/execroot/tensorflow
SET PATH=C:\tools;C:\tools\Anaconda;C:\tools\msys64\usr\local\bin;C:\tools\msys64\usr\bin;C:\tools\msys64\usr\bin;C:\tools\msys64\opt\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\tools\msys64\usr\bin\site_perl;C:\tools\msys64\usr\bin\vendor_perl;C:\tools\msys64\usr\bin\core_perl
C:/tools/msys64/usr/bin/bash -c source external/bazel_tools/tools/genrule/genrule-setup.sh; tensorflow/tools/git/gen_git_source.py --generate tensorflow/tools/git/gen/spec.json tensorflow/tools/git/gen/head tensorflow/tools/git/gen/branch_ref "bazel-out/vc_14_0_x64-py3-opt/genfiles/tensorflow/core/util/version_info.cc": com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1
Traceback (most recent call last):
File "tensorflow/tools/git/gen_git_source.py", line 260, in <module>
generate(args.generate)
File "tensorflow/tools/git/gen_git_source.py", line 212, in generate
git_version = get_git_version(data["path"])
File "tensorflow/tools/git/gen_git_source.py", line 152, in get_git_version
str("--work-tree=" + git_base_path), "describe", "--long", "--dirty", "--tags"
File "C:\tools\Anaconda\lib\subprocess.py", line 626, in check_output
**kwargs).stdout
File "C:\tools\Anaconda\lib\subprocess.py", line 693, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\tools\Anaconda\lib\subprocess.py", line 947, in __init__
restore_signals, start_new_session)
File "C:\tools\Anaconda\lib\subprocess.py", line 1224, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 10.997s, Critical Path: 3.44s
FAILED: Build did NOT complete successfully
I've started from scratch and I've build bazel from sources. Now it building almost till the end
It fails at link time in the end:
ERROR: C:/libs/tensorflow/tensorflow/python/BUILD:1907:1: Linking of rule '//tensorflow/python:_pywrap_tensorflow.so' failed: msvc_link.bat failed: error executing command
cd C:/tmp/Bazel/44EoGNou/execroot/tensorflow
SET PATH=external/local_config_cc/wrapper/bin
external/local_config_cc/wrapper/bin/msvc_link.bat /DLL /WHOLEARCHIVE -pthread -m64 -Xcompilation-mode=opt -Wl,@bazel-out/vc_14_0_x64-py3-opt/bin/tensorflow/python/_pywrap_tensorflow.so-2.params: com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1169
Warning: Unmatched arguments: -ldl -lm -ldl -lm
Warning: Unmatched arguments: -pthread
libversion_lib.a(version_info.o) : error LNK2005: "char const * __cdecl tf_compiler_version(void)" (?tf_compiler_version@@YAPEBDXZ) already defined in libframework_internal.lo(version_info.o)
libversion_lib.a(version_info.o) : error LNK2005: "char const * __cdecl tf_git_version(void)" (?tf_git_version@@YAPEBDXZ) already defined in libframework_internal.lo(version_info.o)
Creating library bazel-out/vc_14_0_x64-py3-opt/bin/tensorflow/python/_pywrap_tensorflow.lib and object bazel-out/vc_14_0_x64-py3-opt/bin/tensorflow/python/_pywrap_tensorflow.exp
bazel-out/vc_14_0_x64-py3-opt/bin/tensorflow/python/_pywrap_tensorflow.so : fatal error LNK1169: one or more multiply defined symbols found
ERROR: C:/libs/tensorflow/tensorflow/python/BUILD:639:1: output 'tensorflow/python/gen_control_flow_ops_py_wrappers_cc.exe' was not created
ERROR: C:/libs/tensorflow/tensorflow/python/BUILD:698:1: output 'tensorflow/python/gen_resource_variable_ops_py_wrappers_cc.exe' was not created
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Hi folks, now that rudimentary Windows support is in place, I am going to lock this issue for new comments, but keep it open until we have a stable release. Going forward:
If you have an issue, please open a new issue against TensorFlow to describe your problem, and fill out the standard issue template. This will help us to track and assign the remaining work that we have to do to get TensorFlow-on-Windows released.
We will continue to use this issue for (rare) announcements about Windows support, so you can continue to subscribe to the issue for a low-traffic feed about improvements to TensorFlow-on-Windows.
Once again, thanks for all your interest in TensorFlow-on-Windows, and now we're going to get back to work!
Today we announced native Windows support in TensorFlow 0.12, with packages for Python 3.5. If you have installed the 64-bit version of Python 3.5 (either from Python.org or Anaconda), you can install TensorFlow with a single command:
C:\> pip install tensorflow
For GPU support, if you have CUDA 8.0 installed, you can install the following package instead:
C:\> pip install tensorflow-gpu
Now that Windows is a supported configuration, I'm going to close this issue; please open a new issue if you have problems with these packages. There are still some discrepancies between the Windows package and the other platforms, which are outlined in the release notes. We'll be working over the next few weeks to close these gaps.
Thanks for all of your interest in TensorFlow on Windows!
Activity
janerivi commentedon Nov 9, 2015
I think its a great suggestion!
mysticuno commentedon Nov 9, 2015
Same, I was kind of disappointed to see no mention of Windows in the download and install page.
ObviouslyGreen commentedon Nov 9, 2015
Anyone have an idea of what the major incompatibilities/accommodations are? Is it it mostly issues with file paths, etc?
It's built with Bazel, which only supports linux/mac, but the good news is that windows support for bazel seems will be out by the end of this year.
gordon-n-stevenson commentedon Nov 10, 2015
👍
Andy-P commentedon Nov 10, 2015
You can already use TensorFlow on a Windows machine by using Docker.
Details are in this thread.
#42
AaronFriel commentedon Nov 10, 2015
I would like to use TensorFlow on Windows without Docker, in order to use GPU compute. Using Docker in this case is not using a Windows container, but a Linux virtual machine on Hyper-V or VirtualBox, and so the GPU will not be passed through.
keon commentedon Nov 10, 2015
👍
darkAlert commentedon Nov 10, 2015
google, give us windows support , please!
chai2010 commentedon Nov 10, 2015
+1/0.0surban commentedon Nov 10, 2015
+1
bayerj commentedon Nov 10, 2015
Yeah, windows support would be super nice.
sfiruch commentedon Nov 10, 2015
Would love to use TensorFlow on Windows (native, not in a VM).
ahmadia commentedon Nov 10, 2015
I'll take a look into whether Continuum can provide a conda package for tensorflow.
sibleyd commentedon Nov 10, 2015
Judging by the use of bazel across the documentation, I assume its a matter of waiting for bazel to support windows. Is there anything specific to Tensorflow that would need to be addressed for windows to be supported, or is just bazel?
160 remaining items
meteorcloudy commentedon Nov 7, 2016
@KhabarlakKonstantin It seems OpenCL configuration is just added into
./configurebut not turned off by default on Windows, so please manually run that script or addexport TF_NEED_OPENCL=0beforeecho "" | ./configureCarmezim commentedon Nov 8, 2016
Is anybody else having these errors with Pragma (ignore pywrap one)?
Building with GPU and all specs in accord to readme.
guschmue commentedon Nov 8, 2016
I have a pr to fix this here: #5421
Carmezim commentedon Nov 8, 2016
@guschmue Nice! Thanks for the quick response
splinter89 commentedon Nov 8, 2016
After fixing _Pragma, this is what I get in the same file:
guschmue commentedon Nov 8, 2016
#5421 will fix this as well.
edwinlengzai commentedon Nov 8, 2016
Can I build with GPU support using bazel?
gunan commentedon Nov 8, 2016
@edwin100394 no GPU support on windows using bazel yet.
We are still working on it.
On Mon, Nov 7, 2016 at 9:33 PM, edwin100394 [email protected]
wrote:
KonstantinKhabarlak commentedon Nov 8, 2016
@meteorcloudy Adding
export TF_NEED_OPENCL=0helped me to go a little furtherNow I'm getting another error:
KonstantinKhabarlak commentedon Nov 8, 2016
I've started from scratch and I've build bazel from sources. Now it building almost till the end
It fails at link time in the end:
mrry commentedon Nov 9, 2016
Hi folks, now that rudimentary Windows support is in place, I am going to lock this issue for new comments, but keep it open until we have a stable release. Going forward:
Once again, thanks for all your interest in TensorFlow-on-Windows, and now we're going to get back to work!
mrry commentedon Nov 29, 2016
Today we announced native Windows support in TensorFlow 0.12, with packages for Python 3.5. If you have installed the 64-bit version of Python 3.5 (either from Python.org or Anaconda), you can install TensorFlow with a single command:
For GPU support, if you have CUDA 8.0 installed, you can install the following package instead:
Now that Windows is a supported configuration, I'm going to close this issue; please open a new issue if you have problems with these packages. There are still some discrepancies between the Windows package and the other platforms, which are outlined in the release notes. We'll be working over the next few weeks to close these gaps.
Thanks for all of your interest in TensorFlow on Windows!