0

我已经使用 pip 安装了 imutils(已升级到最新版本),它应该在安装后直接在 PyCharm ExternalModules 上,但是每当我尝试运行使用 imutils 模块的程序时,它都会打印: Modulerror: imutils is not found , 该怎么办?这是我得到的输出:

**/home/manel/.virtualenvs/tutorialpoint/bin/python /home/manel/Documents/opencv-tutorial/opencv_tutorial_01.py
Traceback (most recent call last):
  File "/home/manel/Documents/opencv-tutorial/opencv_tutorial_01.py", line 5, in <module>
    import imutils
ModuleNotFoundError: No module named 'imutils'**
4

1 回答 1

0

Settings -> Project -> Project Interpreter。如果未在此处列出,则说明它未安装在 PyCharm 正在使用的虚拟环境中。+您可以在列出的软件包旁边使用符号安装它。只需搜索它并按Install package

PS你可以在这里阅读我的问答,了解有关此特定问题的更多详细信息。

于 2019-02-11T09:11:12.030 回答