imageai模块需要Pytorch才能在Python3.10中工作

iyzzxitl  于 2023-01-27  发布在  Python
关注(0)|答案(1)|浏览(228)

我尝试在Python3.10中安装imageai,它已经安装,但是当我导入模块imageai时,它需要安装pytorch和torchvision:
Dependency error!!! PyTorch and TorchVision are not installed. Please see installation instructions in the documentation https://imageai.readthedocs.io/
我在CMD中使用以下命令安装了Pytorch和Torchvision:pip3.10 install torch pip3.10 install torchvision
但是当我导入imageai的时候,我收到了上面的依赖错误。

qxsslcnc

qxsslcnc1#

我遇到了同样的问题。尝试使用imageai说明中列出的依赖项的确切版本。我已经先卸载了所有模块,然后安装了确切的版本,问题就解决了。我使用的是python 3.8.5。我希望这对你也有效。

相关问题