[英]How do I fix an 'ImportError: No module named imbox' exception
from imbox import Imbox
results in an ImportError: No module named imbox
.导致
ImportError: No module named imbox
。
How can i resolve this error?我该如何解决这个错误?
This means that package imbox
is not installed.这意味着 package
imbox
没有安装。
You can install it, using this command:您可以使用以下命令安装它:
pip install imbox
I don't think imbox is an automatically installed package. Try installing imbox first by typing我不认为 imbox 是自动安装的 package。首先尝试通过键入安装 imbox
pip install imbox
pip 安装 imbox
in your command prompt在你的命令提示符下
This is because you dont have imbox installed.这是因为您没有安装 imbox。 You can do this using pip in your commandline.
您可以在命令行中使用 pip 来执行此操作。
Depending on your pip version the command is either:根据您的 pip 版本,命令是:
pip install imbox
or if your pip version is higher 3或者如果你的 pip 版本更高 3
pip3 install imbox
find out your pip version with找出你的 pip 版本
pip --version
If you dont even have pip installed you can findout how here: https://pip.pypa.io/en/stable/installation/如果你甚至没有安装 pip,你可以在这里找到如何安装: https://pip.pypa.io/en/stable/installation/
the issue seems weird,but what caused the issue was i created just a file.py and started coding in that, creating a new project and then the file resolved the issue.这个问题看起来很奇怪,但导致问题的原因是我只创建了一个 file.py 并开始在其中编码,创建一个新项目然后文件解决了问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.