Tuan Nguyen
1 min readDec 5, 2019

--

hi Moses,

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

I had the same issue as many has, i had tried different way with 2 differnet imageai version. Just wonder why this issue?

#!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 <module>
from imageai.Detection import ObjectDetection
File "/content/drive/My Drive/python/imageAI/imageai.py", line 1, in <module>
from imageai.Detection import ObjectDetection
ModuleNotFoundError: No module named 'imageai.Detection'; 'imageai' is not a package

--

--