When i try run code into Jupyter notebook i getting Import error(attached image).
I add paths to PYTHON_PATH and add %PYTHON_PATH% in system PATH, but i still get thos error
Asked
Active
Viewed 1,367 times
1
-
[Possible dupe](https://stackoverflow.com/questions/49126929/tensorflow-object-detection-api-on-windows-importerror-no-module-named-objec/50627405#50627405) – DYZ Dec 06 '18 at 16:38
-
1Where is `object_detection` installed, and what is the value of `sys.path`? – John Gordon Dec 06 '18 at 16:45
1 Answers
1
If you are using Anaconda, you must know that it ignores PYTHONPATH
!. Use the following commands:
conda develop ~/models/research/
conda develop ~/models/research/slim/
here is why you need to do it in this way. When you issue the above commands, it will create a .pth
file inside your current's environment site-packages
folder. Then, adds those two paths to this .pth
file. Then, whenever you load your Anaconda prompt, those are on the path. This works for both Linux and Windows.

ashkan
- 476
- 6
- 14