ModuleNotFoundError: No module named 'imageai.Detection'; 'imageai' is not a package

many thanks for your work on https://towardsdatascience.com/object-detection-with-10-lines-of-code-d6cb4d86f606 . I use COLAB

I had the same issue as many has, i had tried different suggested way with 2 differnet imageai version. Just wonder why this issue? wonder why it work for some but not for other??

#!pip install imageai — upgrade ; pip or pip3 no different; pip freeze|grep imageai show the package is there
!pip3 install https://github.com/OlafenwaMoses/ImageAI/releases/download/2.0.1/imageai-2.0.1-py3-none-any.whl
Collecting imageai==2.0.1
Downloading https://github.com/OlafenwaMoses/ImageAI/releases/download/2.0.1/imageai-2.0.1-py3-none-any.whl (137kB)
|████████████████████████████████| 143kB 4.0MB/s
Installing collected packages: imageai
Found existing installation: imageai 2.1.5
Uninstalling imageai-2.1.5:
Successfully uninstalled imageai-2.1.5
Successfully installed imageai-2.0.1
i put your code in imageai.py and run it on colab
%cd /content/drive/My\ Drive/python/imageAI
!python imageai.py
output:
/content/drive/My Drive/python/imageAI
Traceback (most recent call last):
File “imageai.py”, line 1, in
from imageai.Detection import ObjectDetection
File “/content/drive/My Drive/python/imageAI/imageai.py”, line 1, in
from imageai.Detection import ObjectDetection
ModuleNotFoundError: No module named ‘imageai.Detection’; ‘imageai’ is not a package
](https://medium.com/@tuan88/hi-moses-511ae7f8f56)

Always ensure you install the latest version of ImageAI from PyPi using the command below.

pip3 install imageai --upgrade

I did try/read several hours before i contact you, yes i did tried with pip4