Reputation: 13
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
Upvotes: 1
Views: 1445
Reputation: 476
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.
Upvotes: 1