Google Colab:错误:找不到满足tensorflow==1.12.2要求的版本

2024-06-17 12:06:34 发布

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

我试图在我的电脑上运行一个代码,但我失败了

RuntimeError: CUDA out of memory. Tried to allocate 2.00 MiB (GPU 0; 4.00 GiB total capacity; 2.72 GiB already allocated; 1.83 MiB free; 4.76 MiB cached)

出于这个原因,我决定在GoogleColab上运行它,但我需要安装所有的需求,其中一个是tensorflow 1.12.2,当我尝试执行时

!pip install tensorflow==1.12.2

我明白了

ERROR: Could not find a version that satisfies the requirement tensorflow==1.12.2

我已经看到,在我的Anaconda环境中,我使用python 3.6.13,而在GoogleColab中python 3.7.10。这就是问题所在吗?我试图在GoogleColab中降级python版本,但未能降级。有人能帮我吗


Tags: ofto代码tensorflow降级outcudamib