如何在replit上使用tensorflow?

2024-05-19 09:15:50 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经使用tflearn创建了一个DNN,我想在replit上实现它。 我是这样学习的:

import tensorflow as tf
import tflearn

但是,replit控制台会输出以下内容:

Repl.it: Updating package configuration

--> python3 -m poetry add flask tensorflow
Using version ^2.0.1 for flask
Using version ^2.5.0 for tensorflow

Updating dependencies
Resolving dependencies...


Package operations: 1 install, 0 updates, 0 removals

  - Installing tensorflow (2.5.0)

[EnvCommandError]
Command ['/opt/virtualenvs/python3/bin/pip', 'install', '--no-deps', 'tensorflow==2.5.0'] errored with the following return code -9, and output: 
Collecting tensorflow==2.5.0
  Downloading https://files.pythonhosted.org/packages/59/9b/b52336903d837dc21289b9659bfb89ebfb6c2328045da8cb1e5969b8cc3e/tensorflow-2.5.0-cp38-cp38-manylinux2010_x86_64.whl (454.4MB)

exit status 1

谁能告诉我怎么解决这个问题吗


Tags: installimportflaskforversiontensorflowasdependencies

热门问题