File tree 2 files changed +14
-26
lines changed
2 files changed +14
-26
lines changed Original file line number Diff line number Diff line change 22
22
bazel --version # 确保版本是6.5.0即可.
23
23
` ` `
24
24
25
- 3. 下载并解压` tensorflow 2.16.1 ` .
25
+ 3. 下载并解压` tensorflow 2.17.0 ` .
26
26
27
27
` ` ` shell
28
- wget https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.16.1 .zip
29
- unzip v2.16.1 .zip
30
- cd tensorflow-2.16.1
28
+ wget https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.17.0 .zip
29
+ unzip v2.17.0 .zip
30
+ cd tensorflow-2.17.0
31
31
` ` `
32
32
33
33
4. 设置环境变量` TF_PYTHON_VERSION` .
45
45
6. 构建` tensorflow` (在作者本人的` M1 MacBook Pro 16GB` 大概需要` 70` 分钟).
46
46
47
47
` ` ` shell
48
- bazel build //tensorflow/tools/pip_package:build_pip_package
48
+ bazel build //tensorflow/tools/pip_package:wheel
49
49
` ` `
50
50
51
- 7. 在当前目录下, 生成` whl` 文件.
52
-
53
- ` ` ` shell
54
- ./bazel-bin/tensorflow/tools/pip_package/build_pip_package ./
55
- ` ` `
56
-
57
- 8. 安装` whl` 文件.
51
+ 7. 安装` whl` 文件.
58
52
59
53
` ` ` shell
60
- pip install ./* .whl
54
+ pip install ./bazel-bin/tensorflow/tools/pip_package/wheel_house/ * .whl
61
55
` ` `
62
56
63
57
# # Tips
Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ Please use `Xcode 15.3` and `Apple clang version 15.0.0 (clang-1500.3.9.4)` or l
22
22
bazel --version # Make sure the version is 6.5.0.
23
23
` ` `
24
24
25
- 3. Download and extract ` tensorflow 2.16.1 ` .
25
+ 3. Download and extract ` tensorflow 2.17.0 ` .
26
26
27
27
` ` ` shell
28
- wget https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.16.1 .zip
29
- unzip v2.16.1 .zip
30
- cd tensorflow-2.16.1
28
+ wget https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.17.0 .zip
29
+ unzip v2.17.0 .zip
30
+ cd tensorflow-2.17.0
31
31
` ` `
32
32
33
33
4. Set the environment variable ` TF_PYTHON_VERSION` .
@@ -45,21 +45,15 @@ Please use `Xcode 15.3` and `Apple clang version 15.0.0 (clang-1500.3.9.4)` or l
45
45
6. Build ` tensorflow` (which takes approximately ` 70` minutes on the author' s M1 MacBook Pro `16`GB).
46
46
47
47
```shell
48
- bazel build //tensorflow/tools/pip_package:build_pip_package
48
+ bazel build //tensorflow/tools/pip_package:wheel
49
49
```
50
50
51
- 7. In the current directory, generate the `whl` file.
51
+ 7. Install the `whl` file.
52
52
53
53
```shell
54
- ./bazel-bin/tensorflow/tools/pip_package/build_pip_package ./
54
+ pip install ./bazel-bin/tensorflow/tools/pip_package/wheel_house/*.whl
55
55
```
56
56
57
- 8. Install the `whl` file.
58
-
59
- ```shell
60
- pip install ./*.whl
61
- ```
62
-
63
57
## Tips
64
58
65
59
1. Please ensure that your network is stable during the compilation process, and the compilation needs to use the network.
You can’t perform that action at this time.
0 commit comments