[英]the imageai module requires Pytorch to work in Python3.10
I am trying to install imageai in Python3.10.我正在尝试在 Python3.10 中安装 imageai。 It is installed but when I import the module imageai, it requires installing pytorch and torchvision:它已安装,但当我导入模块 imageai 时,它需要安装 pytorch 和 torchvision:
Dependency error.:. PyTorch and TorchVision are not installed. Please see installation instructions in the documentation https://imageai.readthedocs.io/
I installed Pytorch and Torchvision using the below commands in CMD: pip3.10 install torch pip3.10 install torchvision
我在 CMD 中使用以下命令安装了 Pytorch 和 Torchvision: pip3.10 install torch pip3.10 install torchvision
Yet I receive the above dependency error when I import imageai.但是我在导入 imageai 时收到上述依赖错误。 Any idea?任何的想法?
I had the same problem.我有同样的问题。 Try to use the exact versions of the dependencies listed in the instructions of imageai .尝试使用imageai说明中列出的依赖项的确切版本。 I have uninstalled all modules first, then installed with the exact versions and the problem is solved.我先卸载了所有模块,然后安装了确切的版本,问题就解决了。 I am using python 3.8.5
.我正在使用python 3.8.5
。 I hope this works with you also.我希望这也适用于你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.