현상
ModuleNotFoundError 발생
import missingno as msno
msno.matrix(bike, figsize=(12,5))
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-10-70cb1d17f329> in <module>
----> 1 import missingno as msno
2
3 msno.matrix(bike, figsize=(12,5))
ModuleNotFoundError: No module named 'missingno'
해결 방법
python 에서 import 하여 사용할때, 기본적인것을 제외한 모듈은 사전에 install을 진행해야 한다.
powershell( or cmd )에서 missingno 모듈 다운로드 한다.
PS C:\Users\log> pip install missingno
Collecting missingno
Downloading https://files.pythonhosted.org/packages/2b/de/6e4dd6d720c49939544352155dc06a08c9f7e4271aa631a559dfbeaaf9d4/missingno-0.4.2-py3-none-any.whl
Collecting numpy (from missingno)
Downloading https://files.pythonhosted.org/packages/95/1b/48ba889a3b734f8bdb851dbeab8a6cbc676f1fb0db0ab762b911f9fec7da/numpy-1.18.3-cp38-cp38-win32.whl (10.8MB)
|████████████████████████████████| 10.8MB 467kB/s
Collecting scipy (from missingno)
Downloading https://files.pythonhosted.org/packages/db/9e/465a416eb04114e3722b17b0f4fa5235bab8a76961de51db0e5850183fb1/scipy-1.4.1-cp38-cp38-win32.whl (27.9MB)
|████████████████████████████████| 27.9MB 504kB/s
Collecting matplotlib (from missingno)
Downloading https://files.pythonhosted.org/packages/d2/5c/8866094446c6b09360103677fc099fe1ea9eb3d72fad7d24b9b7b61bf40f/matplotlib-3.2.1-cp38-cp38-win32.whl (9.0MB)
|████████████████████████████████| 9.0MB 384kB/s
Collecting seaborn (from missingno)
Downloading https://files.pythonhosted.org/packages/70/bd/5e6bf595fe6ee0f257ae49336dd180768c1ed3d7c7155b2fdf894c1c808a/seaborn-0.10.0-py3-none-any.whl (215kB)
|████████████████████████████████| 225kB 547kB/s
Collecting cycler>=0.10 (from matplotlib->missingno)
Downloading https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib->missingno)
Downloading https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67kB)
|████████████████████████████████| 71kB 762kB/s
Collecting python-dateutil>=2.1 (from matplotlib->missingno)
Downloading https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl (227kB)
|████████████████████████████████| 235kB 327kB/s
Collecting kiwisolver>=1.0.1 (from matplotlib->missingno)
Downloading https://files.pythonhosted.org/packages/83/c0/b370ca17fd314f188d98194c0217054416401418df4928ca844dd5b4bb4e/kiwisolver-1.2.0-cp38-none-win32.whl (43kB)
|████████████████████████████████| 51kB 204kB/s
Collecting pandas>=0.22.0 (from seaborn->missingno)
Downloading https://files.pythonhosted.org/packages/07/12/5a087658337a230f4a77e3d548c847e81aa59b332cdd8ddf5c8d7f11c4a1/pandas-1.0.3-cp38-cp38-win32.whl (7.6MB)
|████████████████████████████████| 7.6MB 595kB/s
Collecting six (from cycler>=0.10->matplotlib->missingno)
Downloading https://files.pythonhosted.org/packages/65/eb/1f97cb97bfc2390a276969c6fae16075da282f5058082d4cb10c6c5c1dba/six-1.14.0-py2.py3-none-any.whl
Collecting pytz>=2017.2 (from pandas>=0.22.0->seaborn->missingno)
Downloading https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf481fa6ea62cd0d25bf1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl (509kB)
|████████████████████████████████| 512kB 595kB/s
Installing collected packages: numpy, scipy, six, cycler, pyparsing, python-dateutil, kiwisolver, matplotlib, pytz, pandas, seaborn, missingno
Successfully installed cycler-0.10.0 kiwisolver-1.2.0 matplotlib-3.2.1 missingno-0.4.2 numpy-1.18.3 pandas-1.0.3 pyparsing-2.4.7 python-dateutil-2.8.1 pytz-2019.3 scipy-1.4.1 seaborn-0.10.0 six-1.14.0
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
'Programming > Python' 카테고리의 다른 글
[Anaconda] 주요 명령어 (0) | 2020.04.22 |
---|---|
[python] 연산자, 연산자 우선순위, math 내장 함수 (0) | 2020.04.17 |
[python] 산술 연산 관계 연산 (0) | 2020.04.16 |