简体   繁体   English

如何安装 TensorFlow?

[英]How do I install TensorFlow?

I have tried to install TensorFlow using pip install tensorflow but command prompt threw an error saying我试图安装 TensorFlow 使用pip install tensorflow但命令提示符抛出一个错误说

ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)错误:找不到满足 tensorflow 要求的版本(来自版本:无)

ERROR: No matching distribution found for tensorflow错误:未找到 tensorflow 的匹配分布

Please make sure that the version of Python and the version of Tensorflow are not in conflict.请确保 Python 的版本和 Tensorflow 的版本不冲突。 Check this first!先检查这个!

>>> python3 --version

Make sure it is not the latest one(like 3.10).确保它不是最新的(如 3.10)。 It takes time for Other libraries to support the latest versions.其他库支持最新版本需要时间。

Then go to TensorFlow PIP history page and look for the compatible version.然后 go 到TensorFlow PIP 历史页面并查找兼容版本。

Preferably use Anaconda for package management and install any big Frameworks/libraries in virtual environments最好使用 Anaconda 进行 package 管理,并在虚拟环境中安装任何大型框架/库

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM