Skip to content

Commit fbcc36c

Browse files
committed
TF Windows documentation
1 parent f3745bc commit fbcc36c

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

site/en/install/pip.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ step-by-step instructions.
5151
supported GPU on native-Windows.
5252
Starting with TensorFlow `2.11`, you will need to install
5353
[TensorFlow in WSL2](https://tensorflow.org/install/pip#windows-wsl2),
54-
or install `tensorflow-cpu` and, optionally, try the
54+
or install `tensorflow` or `tensorflow-cpu` and, optionally, try the
5555
[TensorFlow-DirectML-Plugin](https://github.com/microsoft/tensorflow-directml-plugin#tensorflow-directml-plugin-)
5656

5757
```bash

site/en/install/source_windows.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,24 @@ git checkout <em>branch_name</em> # r1.9, r1.10, etc.
9191
Key Point: If you're having build problems on the latest development branch, try
9292
a release branch that is known to work.
9393

94+
## Optional: Environmental Variable Set Up
95+
Run following commands before running build command to avoid issue with package creation: [tensorflow:issue#59943](https://github.com/tensorflow/tensorflow/issues/59943),[tensorflow:issue#9436](https://github.com/tensorflow/tensorflow/issues/9436),[tensorflow:issue#60083](https://github.com/tensorflow/tensorflow/issues/60083)
96+
97+
<pre class="devsite-terminal tfo-terminal-windows devsite-click-to-copy">
98+
set PATH=path/to/python [e.g. (C:/Python310)]
99+
set PATH=path/to/python/Scripts [e.g. (C:/Python310/Scripts)]
100+
set PYTHON_BIN_PATH=path/to/python_virtualenv/Scripts/python.exe
101+
set PYTHON_LIB_PATH=path/to/python virtualenv/lib/site-packages
102+
set PYTHON_DIRECTORY=path/to/python_virtualenv/Scripts
103+
</pre>
104+
105+
Bazel/MSVC path set up issue [tensorflow:issue#54578](https://github.com/tensorflow/tensorflow/issues/54578)(If the below commands were set up while installing Bazel, please ignore them)
106+
<pre class="devsite-terminal tfo-terminal-windows devsite-click-to-copy">
107+
set BAZEL_SH=C:/msys64/usr/bin/bash.exe
108+
set BAZEL_VS=C:/Program Files(x86)/Microsoft Visual Studio/2019/BuildTools
109+
set BAZEL_VC=C:/Program Files(x86)/Microsoft Visual Studio/2019/BuildTools/VC
110+
</pre>
111+
94112

95113
## Optional: Configure the build
96114

@@ -190,6 +208,13 @@ To make the TensorFlow package builder with GPU support:
190208
bazel build --config=opt --config=cuda --define=no_tensorflow_py_deps=true //tensorflow/tools/pip_package:build_pip_package
191209
</pre>
192210

211+
Commands to clean the bazel cache to resolve errors due to invalid or outdated cached data, bazel clean with --expunge flag removes files permanently [tensorflow:issue#13135](https://github.com/tensorflow/tensorflow/issues/13135)
212+
213+
<pre class="devsite-terminal tfo-terminal-windows devsite-click-to-copy">
214+
bazel clean
215+
bazel clean --expunge
216+
</pre>
217+
193218
#### Bazel build options
194219

195220
Use this option when building to avoid issue with package creation:
@@ -223,6 +248,7 @@ Although it is possible to build both CUDA and non-CUDA configs under the
223248
same source tree, we recommend running `bazel clean` when switching between
224249
these two configurations in the same source tree.
225250

251+
226252
### Install the package
227253

228254
The filename of the generated `.whl` file depends on the TensorFlow version and

0 commit comments

Comments
 (0)