简体   繁体   English

安装了 Imutils 但 python 给出错误“没有名为 imutils 的模块”

[英]Imutils installed but python gives error "No module named imutils"

I installed imutils on python 3.7 but every time I use import imutils it gives me an error "no module names imutils".我在 python 3.7 上安装了 imutils,但每次使用 import imutils 时,它都会给我一个错误“没有模块名称 imutils”。

This is what I've done so far:这是我到目前为止所做的:

  • I am using MacBook and have tried using pycharm and Python IDE interface both but both give the same error.我正在使用 MacBook 并尝试使用 pycharm 和 Python IDE 接口,但都给出了相同的错误。
  • I used pycharm to install imutils and then used pip install imutils as well.我使用 pycharm 安装 imutils,然后也使用 pip install imutils。 Tried : sudo pip install imutils尝试过:sudo pip install imutils
  • sudo pip3 install imutils须藤 pip3 安装 imutils
  • sudo -H.须藤-H。 pip install imutils pip 安装 imutils
  • restarted the machine None of these seem to work重新启动机器这些似乎都不起作用
  • I am not using anaconda or any virtual env.我没有使用 anaconda 或任何虚拟环境。 The python 3.7 is on the osX. python 3.7 在 osX 上。

Please check if you imported imutils in your Python Code请检查您是否在 Python 代码中导入了 imutils

import imutils

Also make sure you have only one version of python installed.还要确保你只安装了一个版本的 python。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM