I ran $ pip install (module)
in the terminal, but when I import it in jupyter, I get a ModuleNotFoundError.
But ipython can import it.
When I searched the net in various ways, it was said that anaconda and ipython had different references. Listen to it
import sys
sys.path
When I executed, different paths were displayed for jupyter and ipython.
That means that I should add the path displayed in ipython.
import sys
sys.path.append('Arbitrary path')
I was able to import successfully by executing!
I was able to import and use the module this way for the time being, but honestly it's annoying to do this every time ... If anyone knows a good way, please let me know m (_ _) m
Recommended Posts