Problem Solving: Python install third-party libraries seaborn not be imported into the jupyter notebook

Problem Description:
I am using pip3 install seaborn library in the terminal, but the strange thing is when I opened jupyter notebook, it is said that I have not imported successfully, the pit! ! !
Here Insert Picture Description

Solution:
In the mac open up into the following folder visit

/usr/local/share/jupyter/kernels/python3

Open kernel.json, with the following modifications

Before:
Here Insert Picture Description
After modifying

Will be pythonmodified to /usr/local/bin/python3
Here Insert Picture Description
restart jupyter notebook, can be found no longer being given a
Here Insert Picture Description
lesson:
encountered an error, use Google to search, then go to GitHub issues inside answers, there will be a lot of heavyweights to help you solve problems and answer very high quality . Facts have proved that to solve the problem than watching other people look at issues of Chinese efficiently used blog to 10 times

References:

Here Insert Picture Description

Published 308 original articles · won praise 149 · Views 150,000 +

Guess you like

Origin blog.csdn.net/qq_43827595/article/details/104899235
Recommended