省很多事。。。
步骤 1:下载 TensorFlow Wheel 文件
-
访问 TensorFlow 的 PyPI 页面: TensorFlow 2.9.0 PyPI
-
选择适合你的 Python 版本和操作系统的 Wheel 文件:
- 例如,如果你使用的是 Windows 和 Python 3.9,你可以下载
tensorflow-2.9.0-cp39-cp39-win_amd64.whl
。
- 例如,如果你使用的是 Windows 和 Python 3.9,你可以下载
步骤 2:安装 TensorFlow
pip install D:\Python3.9\Scripts\tensorflow-2.6.0-cp39-cp39-win_amd64.whl
红字:轮子文件包地址
绿字:文件名