简体   繁体   English

为 Raspberry Pi 安装 TensorFlow

[英]Installing TensorFlow for Raspberry Pi

I am following this link to create a .whl package for Raspberry Pi:我正在按照此链接为 Raspberry Pi 创建一个 .whl 包:

https://www.tensorflow.org/install/source_rpi https://www.tensorflow.org/install/source_rpi

Specifically, I am running the following command:具体来说,我正在运行以下命令:

tensorflow/tools/ci_build/ci_build.sh PI \\ tensorflow/tools/ci_build/pi/build_raspberry_pi.sh PI_ONE

and I get the following message: "RuntimeError: Python 3.5 or later is required"我收到以下消息:“运行时错误:需要 Python 3.5 或更高版本”

Checking the Python version the following information is provided:检查 Python 版本,提供以下信息:

...~/tensorflow$ python --version Python 3.5.2 ...~/tensorflow$ python --version Python 3.5.2

How can I fix this problem?我该如何解决这个问题?

Thanks in advance, Gus提前致谢,格斯

Install anaconda.安装蟒蛇。 Create an env with python 3.5, activate it and then run the script使用 python 3.5 创建一个 env,激活它然后运行脚本

Thanks Sarath, Obayhan for taking the time to try to help me with this problem.感谢 Sarath 和 Obayhan 花时间帮助我解决这个问题。 After a lot of frustration, I decided to upgrade Ubuntu to 20.04 LTS and everything works as specified in the Tensorflow website.在经历了很多挫折之后,我决定将 Ubuntu 升级到 20.04 LTS,一切都按照 Tensorflow 网站上的说明运行。

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

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