尝试在Spyder上安装fastai,但不知道如何解决此错误



如果有人能帮我找到确切的解决方案,我试着安装了不同版本的pytorch,但它仍然是一样的。

!pip install fastai
Collecting fastai
Using cached fastai-2.3.0-py3-none-any.whl (193 kB)
Collecting spacy<3
Using cached spacy-2.3.5-cp38-cp38-win_amd64.whl (9.7 MB)
ERROR: Could not find a version that satisfies the requirement torchvision<0.9,>=0.8 (from fastai) (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.5.0, 0.9.0, 0.9.1)
ERROR: No matching distribution found for torchvision<0.9,>=0.8 (from fastai)

(此处为Spyder maintainer(在Spyder中安装软件包的正确方法不是使用!pip!conda命令(以后将禁用(。

相反,您需要安装Miniconda,然后用您想要使用的包和spyder-kernels创建一个conda环境,最后将Spyder连接到该环境。

最新更新