colab pytorch运行不成功(版本问题)

使用pip install git+https://github.com/d2l-ai/d2l-zh@release
安装d2l的时候,要求
numpy==1.22.2,该版本官方需要The Python versions supported for this release are 3.8-3.10.
colab默认的py版本为3.7。

1 Like

我也是这个问题,改成了
pip install d2l
暂时没有出现什么问题

到6.6 卷积神经网络(LeNet)这里用这个办法会出现问题,最后不能输出图标,有什么办法吗?


我是可以跑的,是不是你改了什么?

应该没有改代码,不过可以通过 pip install matplotlib==3.0.0 解决这个问题