Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Can't import matplotlib #12601

Closed
Closed
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Milestone
@beojan

Description

@beojan

Bug report

Bug summary

Importing matplotlib fails withImportError: cannot import name 'get_backend' from 'matplotlib'.

Code for reproduction

importmatplotlib

Actual outcome

Traceback (most recent call last):  File "<stdin>", line 1, in <module>  File "/usr/lib/python3.7/site-packages/matplotlib/__init__.py", line 1080, in <module>    rcParamsOrig = RcParams(rcParams.copy())  File "/usr/lib/python3.7/site-packages/matplotlib/__init__.py", line 870, in __getitem__    from matplotlib import pyplot as plt  File "/usr/lib/python3.7/site-packages/matplotlib/pyplot.py", line 33, in <module>    import matplotlib.image  File "/usr/lib/python3.7/site-packages/matplotlib/image.py", line 18, in <module>    from matplotlib.backend_bases import FigureCanvasBase  File "/usr/lib/python3.7/site-packages/matplotlib/backend_bases.py", line 46, in <module>    from matplotlib import (ImportError: cannot import name 'get_backend' from 'matplotlib' (/usr/lib/python3.7/site-packages/matplotlib/__init__.py)

Expected outcome

Matplotlib is imported

Matplotlib version

  • Operating system: GNU/Linux
  • Matplotlib version: 3.0 git master
  • Python version: 3.7.1

Python from Arch repo, matplotlib from git master.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp