if jupyter notebook has different paths that python has....
causing No module named **
when you are sure its there in python
do this in both python and jupyter
import sys
print(sys.path)
and compare the paths. you might want to copy and paste the result from the terminal and do the following
import sys
python_path = [] #list copy and pasted from terminal
for p in sys.path:
if p not in python_path:
print p
in terminal do
jupyter notebook --generate-config
go to the path and open jupyter_notebook_config.py
, in my case /Users/username/.jupyter/
add following line
c.InteractiveShellApp.exec_lines=[
'import sys; sys.path.append("path-to-add")'
]
Thanks, but not working...
I think.. this option is just for ipython.
What can I do for this problem ?