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
Advertisement
Answer
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.