Skip to content

Cannot import name 'ft2font' from 'matplotlib' on windows10 #155

@kurtispykes

Description

@kurtispykes

I am using a windows 10 machine and using Anaconda 4.7.12. i attempted to Import matplotlib.pyplot and got an error. It has been working fine until yesterday. I uninstalled and reinstalled anaconda, as well as uninstalling and re-installing matplotlib.

Error code on Jupyter notebooks:

--------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-ea90a94a94b6> in <module>
      1 import pandas as pd
      2 import numpy as np
----> 3 import matplotlib.pyplot as plt
      4 get_ipython().run_line_magic('matplotlib', 'inline')

~\AppData\Roaming\Python\Python37\site-packages\matplotlib\__init__.py in <module>
    203 
    204 
--> 205 _check_versions()
    206 
    207 

~\AppData\Roaming\Python\Python37\site-packages\matplotlib\__init__.py in _check_versions()
    188     # Quickfix to ensure Microsoft Visual C++ redistributable
    189     # DLLs are loaded before importing kiwisolver
--> 190     from . import ft2font
    191 
    192     for modname, minver in [

ImportError: cannot import name 'ft2font' from 'matplotlib' (C:\Users\kpy\AppData\Roaming\Python\Python37\site-packages\matplotlib\__init__.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions