ModuleNotFound:没有名为“ imutils”的模块

时间:2019-02-10 15:13:45

标签: pycharm python-3.6 imutils

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

**/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'**

1 个答案:

答案 0 :(得分:0)

转到Settings -> Project -> Project Interpreter。如果未在此处列出,则表示尚未安装在PyCharm正在使用的虚拟环境中。您可以在列出的软件包旁边以+标记安装它。只需搜索并按安装软件包

PS 。您可以在here阅读我的问答,以获取有关此特定问题的更多详细信息。