ModuleNotFoundError: No module named 'matplotlib' Windows

ModuleNotFoundError: No module named 'matplotlib' Windows

Hi,

I am running some program in TensorFlow and it gives following error:

(tensorflow) C:\Deepak\tf\2_BasicModels>python linear_regression.py 

Traceback (most recent call last): 

  File "linear_regression.py", line 12, in <module> 

    import matplotlib.pyplot as plt 

ModuleNotFoundError: No module named 'matplotlib'

How to resolve this?

Thanks

View Answers

February 22, 2018 at 7:33 PM

Hi,

I was able to resolve issue with following command:

conda install matplotlib

Here is full command and installation log:

(tensorflow) C:\Deepak\tf\2_BasicModels>python linear_regression.py 

Traceback (most recent call last): 

  File "linear_regression.py", line 12, in <module> 

    import matplotlib.pyplot as plt 

ModuleNotFoundError: No module named 'matplotlib' 



(tensorflow) C:\Deepak\tf\2_BasicModels>conda install matplotlib 

Fetching package metadata ............. 

Solving package specifications: . 



Package plan for installation in environment C:\Users\User 5\Anaconda3\envs\tensorflow: 



The following NEW packages will be INSTALLED: 



    cycler:          0.10.0-py36h009560c_0 

    freetype:        2.8-h51f8f2c_1 

    matplotlib:      2.1.2-py36h016c42a_0 

    pyparsing:       2.2.0-py36h785a196_1 

    pyqt:            5.6.0-py36hb5ed885_5 

    python-dateutil: 2.6.1-py36h509ddcb_1 

    pytz:            2018.3-py36_0 

    sip:             4.18.1-py36h9c25514_2 

    tornado:         4.5.3-py36_0 



The following packages will be UPDATED: 



    libpng:          1.6.28-vc14_2         conda-forge [vc14] --> 1.6.34-h79bbb47_0 

    libtiff:         4.0.7-vc14_1          conda-forge [vc14] --> 4.0.9-h0f13578_0 

    opencv:          3.3.0-py36_202        conda-forge --> 3.3.1-py36h20b85fd_1 



Proceed ([y]/n)? y 



libpng-1.6.34- 100% |###############################| Time: 0:00:00   3.31 MB/s 

freetype-2.8-h 100% |###############################| Time: 0:00:00   6.13 MB/s 

libtiff-4.0.9- 100% |###############################| Time: 0:00:00   7.35 MB/s 

pytz-2018.3-py 100% |###############################| Time: 0:00:00   9.06 MB/s 

tornado-4.5.3- 100% |###############################| Time: 0:00:00   9.55 MB/s 

opencv-3.3.1-p 100% |###############################| Time: 0:00:08  11.49 MB/s 

matplotlib-2.1 100% |###############################| Time: 0:00:00  11.83 MB/s 



(tensorflow) C:\Deepak\tf\2_BasicModels>

Thanks









Related Tutorials/Questions & Answers:
ModuleNotFoundError: No module named 'matplotlib' Windows
ModuleNotFoundError: No module named 'matplotlib' Windows  Hi, I am... ModuleNotFoundError: No module named 'matplotlib' (tensorflow) C:\Deepak\tf\2_BasicModels>...; import matplotlib.pyplot as plt ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'matplotlib' Windows
ModuleNotFoundError: No module named 'matplotlib' Windows  Hi, I am... ModuleNotFoundError: No module named 'matplotlib' (tensorflow) C:\Deepak\tf\2_BasicModels>...; import matplotlib.pyplot as plt ModuleNotFoundError: No module named
Advertisements
ModuleNotFoundError: No module named 'matplotlib'
ModuleNotFoundError: No module named 'matplotlib'  Hi, My Python... 'matplotlib' How to remove the ModuleNotFoundError: No module named '... of matplotlib python library, ModuleNotFoundError: No module named 'matplotlib'
ModuleNotFoundError: No module named 'eddington-matplotlib'
ModuleNotFoundError: No module named 'eddington-matplotlib'  Hi...: No module named 'eddington-matplotlib' How to remove the ModuleNotFoundError: No module named 'eddington-matplotlib' error? Thanks   Hi
ModuleNotFoundError: No module named 'eddington-matplotlib'
ModuleNotFoundError: No module named 'eddington-matplotlib'  Hi...: No module named 'eddington-matplotlib' How to remove the ModuleNotFoundError: No module named 'eddington-matplotlib' error? Thanks   Hi
ModuleNotFoundError: No module named 'japanize-matplotlib'
ModuleNotFoundError: No module named 'japanize-matplotlib'  Hi, My...: No module named 'japanize-matplotlib' error? Thanks   Hi..., ModuleNotFoundError: No module named 'japanize-matplotlib' error
ModuleNotFoundError: No module named 'matplotlib-colorbar'
ModuleNotFoundError: No module named 'matplotlib-colorbar'  Hi, My...: No module named 'matplotlib-colorbar' error? Thanks   Hi..., ModuleNotFoundError: No module named 'matplotlib-colorbar' error
ModuleNotFoundError: No module named 'matplotlib-helpers'
ModuleNotFoundError: No module named 'matplotlib-helpers'  Hi, My... named 'matplotlib-helpers' How to remove the ModuleNotFoundError: No module..., ModuleNotFoundError: No module named 'matplotlib-helpers' error will be solved
ModuleNotFoundError: No module named 'matplotlib-hep'
ModuleNotFoundError: No module named 'matplotlib-hep'  Hi, My... named 'matplotlib-hep' How to remove the ModuleNotFoundError: No module named... the installation of matplotlib-hep python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'matplotlib-pgfutils'
ModuleNotFoundError: No module named 'matplotlib-pgfutils'  Hi, My...: No module named 'matplotlib-pgfutils' error? Thanks   Hi..., ModuleNotFoundError: No module named 'matplotlib-pgfutils' error
ModuleNotFoundError: No module named 'matplotlib-stream'
ModuleNotFoundError: No module named 'matplotlib-stream'  Hi, My... named 'matplotlib-stream' How to remove the ModuleNotFoundError: No module...: No module named 'matplotlib-stream' error will be solved. Thanks
ModuleNotFoundError: No module named 'matplotlib-subsets'
ModuleNotFoundError: No module named 'matplotlib-subsets'  Hi, My... named 'matplotlib-subsets' How to remove the ModuleNotFoundError: No module..., ModuleNotFoundError: No module named 'matplotlib-subsets' error will be solved
ModuleNotFoundError: No module named 'timeseriesql-matplotlib'
ModuleNotFoundError: No module named 'timeseriesql-matplotlib'  Hi...: No module named 'timeseriesql-matplotlib' How to remove the ModuleNotFoundError: No module named 'timeseriesql-matplotlib' error? Thanks   
ModuleNotFoundError: No module named 'django-matplotlib'
ModuleNotFoundError: No module named 'django-matplotlib'  Hi, My... named 'django-matplotlib' How to remove the ModuleNotFoundError: No module...: No module named 'django-matplotlib' error will be solved. Thanks
ModuleNotFoundError: No module named 'eddington-matplotlib'
ModuleNotFoundError: No module named 'eddington-matplotlib'  Hi...: No module named 'eddington-matplotlib' How to remove the ModuleNotFoundError: No module named 'eddington-matplotlib' error? Thanks   Hi
ModuleNotFoundError: No module named 'hangar-matplotlib'
ModuleNotFoundError: No module named 'hangar-matplotlib'  Hi, My... named 'hangar-matplotlib' How to remove the ModuleNotFoundError: No module...: No module named 'hangar-matplotlib' error will be solved. Thanks
ModuleNotFoundError: No module named 'japanize-matplotlib'
ModuleNotFoundError: No module named 'japanize-matplotlib'  Hi, My...: No module named 'japanize-matplotlib' error? Thanks   Hi..., ModuleNotFoundError: No module named 'japanize-matplotlib' error
ModuleNotFoundError: No module named 'jirafs-matplotlib'
ModuleNotFoundError: No module named 'jirafs-matplotlib'  Hi, My... named 'jirafs-matplotlib' How to remove the ModuleNotFoundError: No module...: No module named 'jirafs-matplotlib' error will be solved. Thanks
ModuleNotFoundError: No module named 'eddington-matplotlib'
ModuleNotFoundError: No module named 'eddington-matplotlib'  Hi...: No module named 'eddington-matplotlib' How to remove the ModuleNotFoundError: No module named 'eddington-matplotlib' error? Thanks   Hi
ModuleNotFoundError: No module named 'matplotlib-scalebar'
ModuleNotFoundError: No module named 'matplotlib-scalebar'  Hi, My...: No module named 'matplotlib-scalebar' error? Thanks   Hi..., ModuleNotFoundError: No module named 'matplotlib-scalebar' error
ModuleNotFoundError: No module named 'matplotlib-venn'
ModuleNotFoundError: No module named 'matplotlib-venn'  Hi, My... named 'matplotlib-venn' How to remove the ModuleNotFoundError: No module named... the installation of matplotlib-venn python library, ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'fc-simesh-matplotlib'
ModuleNotFoundError: No module named 'fc-simesh-matplotlib'  Hi...: No module named 'fc-simesh-matplotlib' How to remove the ModuleNotFoundError: No module named 'fc-simesh-matplotlib' error? Thanks   Hi
ModuleNotFoundError: No module named 'matplotlib-label-lines'
ModuleNotFoundError: No module named 'matplotlib-label-lines'  Hi...: No module named 'matplotlib-label-lines' How to remove the ModuleNotFoundError: No module named 'matplotlib-label-lines' error? Thanks   Hi
ModuleNotFoundError: No module named 'matplotlib-venn-wordcloud'
ModuleNotFoundError: No module named 'matplotlib-venn-wordcloud'  Hi...: No module named 'matplotlib-venn-wordcloud' How to remove the ModuleNotFoundError: No module named 'matplotlib-venn-wordcloud' error? Thanks  
ModuleNotFoundError: No module named 'fc-simesh-matplotlib'
ModuleNotFoundError: No module named 'fc-simesh-matplotlib'  Hi...: No module named 'fc-simesh-matplotlib' How to remove the ModuleNotFoundError: No module named 'fc-simesh-matplotlib' error? Thanks   Hi
ModuleNotFoundError: No module named 'ing-theme-matplotlib'
ModuleNotFoundError: No module named 'ing-theme-matplotlib'  Hi...: No module named 'ing-theme-matplotlib' How to remove the ModuleNotFoundError: No module named 'ing-theme-matplotlib' error? Thanks   Hi
ModuleNotFoundError: No module named 'windows'
ModuleNotFoundError: No module named 'windows'  Hi, My Python... 'windows' How to remove the ModuleNotFoundError: No module named 'windows..., ModuleNotFoundError: No module named 'windows' error will be solved
ModuleNotFoundError: No module named 'windows'
ModuleNotFoundError: No module named 'windows'  Hi, My Python... 'windows' How to remove the ModuleNotFoundError: No module named 'windows..., ModuleNotFoundError: No module named 'windows' error will be solved
ModuleNotFoundError: No module named 'os-windows'
ModuleNotFoundError: No module named 'os-windows'  Hi, My Python... 'os-windows' How to remove the ModuleNotFoundError: No module named 'os...-windows python library, ModuleNotFoundError: No module named 'os-windows'
ModuleNotFoundError: No module named 'pip-for-Windows'
ModuleNotFoundError: No module named 'pip-for-Windows'  Hi, My... named 'pip-for-Windows' How to remove the ModuleNotFoundError: No module named... the installation of pip-for-Windows python library, ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'pyimpfuzzy-windows'
ModuleNotFoundError: No module named 'pyimpfuzzy-windows'  Hi, My... named 'pyimpfuzzy-windows' How to remove the ModuleNotFoundError: No module..., ModuleNotFoundError: No module named 'pyimpfuzzy-windows' error will be solved
ModuleNotFoundError: No module named 'pyseneye-windows'
ModuleNotFoundError: No module named 'pyseneye-windows'  Hi, My... named 'pyseneye-windows' How to remove the ModuleNotFoundError: No module...: No module named 'pyseneye-windows' error will be solved. Thanks
ModuleNotFoundError: No module named 'pyseneye-windows'
ModuleNotFoundError: No module named 'pyseneye-windows'  Hi, My... named 'pyseneye-windows' How to remove the ModuleNotFoundError: No module...: No module named 'pyseneye-windows' error will be solved. Thanks
ModuleNotFoundError: No module named 'rpaframework-windows'
ModuleNotFoundError: No module named 'rpaframework-windows'  Hi...: No module named 'rpaframework-windows' How to remove the ModuleNotFoundError: No module named 'rpaframework-windows' error? Thanks   Hi
ModuleNotFoundError: No module named 'temper-windows'
ModuleNotFoundError: No module named 'temper-windows'  Hi, My... named 'temper-windows' How to remove the ModuleNotFoundError: No module named... the installation of temper-windows python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'temper-windows'
ModuleNotFoundError: No module named 'temper-windows'  Hi, My... named 'temper-windows' How to remove the ModuleNotFoundError: No module named... the installation of temper-windows python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'windows-curses'
ModuleNotFoundError: No module named 'windows-curses'  Hi, My... named 'windows-curses' How to remove the ModuleNotFoundError: No module named... the installation of windows-curses python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'windows-curses'
ModuleNotFoundError: No module named 'windows-curses'  Hi, My... named 'windows-curses' How to remove the ModuleNotFoundError: No module named... the installation of windows-curses python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'capstone-windows'
ModuleNotFoundError: No module named 'capstone-windows'  Hi, My... named 'capstone-windows' How to remove the ModuleNotFoundError: No module...: No module named 'capstone-windows' error will be solved. Thanks
ModuleNotFoundError: No module named 'cloudmesh-windows'
ModuleNotFoundError: No module named 'cloudmesh-windows'  Hi, My... named 'cloudmesh-windows' How to remove the ModuleNotFoundError: No module...: No module named 'cloudmesh-windows' error will be solved. Thanks
ModuleNotFoundError: No module named 'coremltools_windows'
ModuleNotFoundError: No module named 'coremltools_windows'  Hi, My...: No module named 'coremltools_windows' error? Thanks   Hi..., ModuleNotFoundError: No module named 'coremltools_windows' error
ModuleNotFoundError: No module named 'dulwich-windows'
ModuleNotFoundError: No module named 'dulwich-windows'  Hi, My... named 'dulwich-windows' How to remove the ModuleNotFoundError: No module named... the installation of dulwich-windows python library, ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'EasyDialogs-for-Windows'
ModuleNotFoundError: No module named 'EasyDialogs-for-Windows'  Hi...: No module named 'EasyDialogs-for-Windows' How to remove the ModuleNotFoundError: No module named 'EasyDialogs-for-Windows' error? Thanks   
ModuleNotFoundError: No module named 'EpistaSim_Windows'
ModuleNotFoundError: No module named 'EpistaSim_Windows'  Hi, My... named 'EpistaSim_Windows' How to remove the ModuleNotFoundError: No module...: No module named 'EpistaSim_Windows' error will be solved. Thanks
ModuleNotFoundError: No module named 'GEMLibrary-windows'
ModuleNotFoundError: No module named 'GEMLibrary-windows'  Hi, My... named 'GEMLibrary-windows' How to remove the ModuleNotFoundError: No module..., ModuleNotFoundError: No module named 'GEMLibrary-windows' error will be solved
ModuleNotFoundError: No module named 'gettext_windows'
ModuleNotFoundError: No module named 'gettext_windows'  Hi, My... named 'gettext_windows' How to remove the ModuleNotFoundError: No module named... the installation of gettext_windows python library, ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'idem-windows'
ModuleNotFoundError: No module named 'idem-windows'  Hi, My Python... 'idem-windows' How to remove the ModuleNotFoundError: No module named '... of idem-windows python library, ModuleNotFoundError: No module named 'idem
ModuleNotFoundError: No module named 'aio_windows_patch'
ModuleNotFoundError: No module named 'aio_windows_patch'  Hi, My... named 'aio_windows_patch' How to remove the ModuleNotFoundError: No module...: No module named 'aio_windows_patch' error will be solved. Thanks
ModuleNotFoundError: No module named 'alignak_checks_windows_nsca'
ModuleNotFoundError: No module named 'alignak_checks_windows_nsca'  ...: No module named 'alignak_checks_windows_nsca' How to remove the ModuleNotFoundError: No module named 'alignak_checks_windows_nsca' error? Thanks
ModuleNotFoundError: No module named 'ctypes-windows-sdk'
ModuleNotFoundError: No module named 'ctypes-windows-sdk'  Hi, My... named 'ctypes-windows-sdk' How to remove the ModuleNotFoundError: No module..., ModuleNotFoundError: No module named 'ctypes-windows-sdk' error will be solved

Ads