Home>
pip install seaborn
And the following message appeared after the installation was completed.
Note: you may need to restart the kernel to use updated packages.
When I try to import seaborn after that, I get the following error and cannot import.
Traceback (most recent call last):
File "/Users/hogehoge/anaconda3/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3325, in run_code
exec (code_obj, self.user_global_ns, self.user_ns)
File "
import seaborn as sns
File "/Users/hogehoge/python/seaborn.py", line 8
pip install seaborn
^
SyntaxError: invalid syntax
What exactly should a kernel update do?
not know what to do for beginners, I hope you can tell me.
-
Answer # 1
Related articles
- python - using tensorflow with jupyter, kernel crashes when cnn model fit
- python - using tensorflow with jupyter, kernel crashes when cnn model fit
- [python] unable to use packages installed with wsl
- python - unable to import packages installed in virtual environment with anaconda
- python - what to do if the jupiter notebook says the kernel appears to have died it will restart automatically
- python - i want to know the cause of the error that occurs when kernel density estimation is performed with high-dimensional dat
This message is not a kernel update.
I think it means that you need to restart the kernel to use the updated package (here seaborn).
Is the environment in question a Jupyter Notebook?
Then, is there an item such as [Kernel]-[Restart] on the upper toolbar?
Click it if you have one.
I'm sorry that the environment was different.
If you describe the environment where the problem is a little more, the tools you are using and their versions, other people may be able to answer.