我尝试在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的时候,我收到了上面的依赖错误。
1条答案
按热度按时间qxsslcnc1#
我遇到了同样的问题。尝试使用imageai说明中列出的依赖项的确切版本。我已经先卸载了所有模块,然后安装了确切的版本,问题就解决了。我使用的是
python 3.8.5
。我希望这对你也有效。