Jupyter Notebook This article is for beginners.
import pandas as pd
Run code like
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-23-7dd3504c366f> in <module>
----> 1 import pandas as pd
ModuleNotFoundError: No module named 'pandas'
When the error of
The module you were trying to run (such as numpy or pandas) may not be installed on your jupyter notebook.
!pip install pandas
Reinstall the module using the command ! Pip
. By prefixing "!", You can execute system commands even on jupyter notebook.
Collecting numpy
Downloading https://files.pythonhosted.org/packages/7c/cd/5243645399c09bb5081e8d2847583f7a6b7cca55eb096a880eda0b602d4d/numpy-1.18.0-cp36-cp36m-macosx_10_9_x86_64.whl (15.2MB)
|████████████████████████████████| 15.2MB 48kB/s eta 0:00:016
Installing collected packages: numpy
Successfully installed numpy-1.18.0
If the installation is completed in this way, it is successful.
After reinstalling, try calling the module you want to use again using ʻimport` as shown in ↑.
Recommended Posts