简体   繁体   English

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

[英]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.

相关问题 python virtualenvwrapper 升级到python3.10后拒绝工作 - python virtualenvwrapper refuses to work after upgrade to python3.10 如何在Ubuntu上使用Python3.10? - How to use Python3.10 on Ubuntu? ImportError:无法在 python3.10 上从部分初始化的模块“gi”(很可能是由于循环导入)导入名称“_gi” - ImportError: cannot import name '_gi' from partially initialized module 'gi' (most likely due to a circular import) on python3.10 python3.10和python3.7如何同时运行? - How to run together python3.10 and python3.7? Ubuntu 如何从python3.10转换到python3.9? - Ubuntu how to change from python3.10 to python3.9? pip 因 python3.10 和 python3.11 而失败 - pip fails with python3.10 & python3.11 CentOS7上安装Python3.10导致文件类型不同 - Python3.10 installation on CentOS7 results in a different file type 为什么在python3.10环境下安装lxml失败? - Why lxml fails to be installed in a python3.10 environment? python3.10-venv没有安装候选怎么安装python3.10虚拟环境? - How to install python3.10 virtual environment when python3.10-venv has no installation candidate? 如何让 VSCode 识别 Python3.10 的结构模式匹配(匹配大小写)? - How can I make VSCode recognize structural pattern matching (match case) with Python3.10?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM