[PYTHON] [Note] I can't call the installed module in jupyter

What happened

I ran $ pip install (module) in the terminal, but when I import it in jupyter, I get a ModuleNotFoundError. But ipython can import it.

Anyway solution

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!

the end

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

[Note] I can't call the installed module in jupyter
I can't get the element in Selenium!
I can't enter characters in the text area! ?? !! ?? !! !! ??
I tried to graph the packages installed in Python
I can't use the darknet command in Google Colaboratory!
I wrote the basic operation of Seaborn in Jupyter Lab
I can't log in to the admin page with Django3
A note when I can't open Jupyter Notebook on Windows
Solution if the module is installed in Python but you get an error in Jupyter notebook
I got lost in the maze
I installed the IoT platform "Rimotte"
I participated in the ISUCON10 qualifying!
I can't enter standard in Subprocess ...
Put the module in the Pepper app
I put Arch in XPS 13 (7390) (Note)
I wrote the queue in Python
Jupyter Notebook 6.0.2 cannot be installed in the Python 2.7 environment created in Anaconda
I wrote the stack in Python
Master the weakref module in Python
I can't import modules in the parent directory even with sys.path.append ('..')
I tried touching touch related methods in the scene module of pythonista
I can't find the commands in the package introduced by pip from Emacs
I can't debug python scripts in Eclipse
In Jupyter, add IPerl to the kernel.
I saved the scraped data in CSV!
I wrote the selection sort in C
Python's "I can't reach the itch ..." feature
Install the Python module in any directory
I wrote the sliding wing in creation.
I can't install the package with pip.
Why can't I install matplotlib in python! !!
I can't use the "next_results" parameter in the Twitter API Search API! ?? Causes and remedies
[Ansible] I want to call my own function from the template module (macro)
I installed Pygame with Python 3.5.1 in the environment of pyenv on OS X
Note that I understand the least squares algorithm. And I wrote it in Python.
I wrote a PyPI module that extends the parameter style in Python's sqlite3 module
I measured the time when I pip installed the C language dependent module with alpine
I tried simulating the "birthday paradox" in Python
I checked the list of shortcut keys of Jupyter
I tried using the Datetime module by Python
I can't click the Selenium checkbox Python VBA
[Note] About the role of underscore "_" in Python
I wrote the hexagonal architecture in go language
I implemented the inverse gamma function in python
I tried adding a Python3 module in C
I checked the calendar deleted in Qiita Advent Calendar 2016
Mock HTTP requests via the requests module in Responses
I implemented Human In The Loop ― Part ① Dashboard ―
I want to display the progress in Python!