error message
ImportError: Failed to import any qt binding
complete error message:
Traceback (most recent call last):
File "/home/xovee/Desktop/codes/www20/plot/cascade_plot.py", line 1, in <module>
import matplotlib.pyplot as plt
File "/home/xovee/miniconda3/envs/tf-2.0-a0/lib/python3.6/site-packages/matplotlib/pyplot.py", line 2355, in <module>
switch_backend(rcParams["backend"])
File "/home/xovee/miniconda3/envs/tf-2.0-a0/lib/python3.6/site-packages/matplotlib/pyplot.py", line 221, in switch_backend
backend_mod = importlib.import_module(backend_name)
File "/home/xovee/miniconda3/envs/tf-2.0-a0/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/xovee/miniconda3/envs/tf-2.0-a0/lib/python3.6/site-packages/matplotlib/backends/backend_qt4agg.py", line 5, in <module>
from .backend_qt5agg import (
File "/home/xovee/miniconda3/envs/tf-2.0-a0/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py", line 11, in <module>
from .backend_qt5 import (
File "/home/xovee/miniconda3/envs/tf-2.0-a0/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py", line 15, in <module>
import matplotlib.backends.qt_editor.figureoptions as figureoptions
File "/home/xovee/miniconda3/envs/tf-2.0-a0/lib/python3.6/site-packages/matplotlib/backends/qt_editor/figureoptions.py", line 13, in <module>
from matplotlib.backends.qt_compat import QtGui
File "/home/xovee/miniconda3/envs/tf-2.0-a0/lib/python3.6/site-packages/matplotlib/backends/qt_compat.py", line 158, in <module>
raise ImportError("Failed to import any qt binding")
ImportError: Failed to import any qt binding
environment h1>
- Ubuntu 18.4 LTS li>
- Python 3.6 li>
- Matplotlib 3.1.1 li> ul>
solution
pip install PyQt5
<标题>引用 h1>
李
<> Foad。(2018年11月22日)。导入任何qt绑定、Python – Tensorflow失败。李从https://stackoverflow.com/questions/52346254/importerror-failed-to-import-any-qt-binding-python-tensorflow获取 ol>
div>
Read More:
- django.core.exceptions . improveconfigured: error loading MySQL DB module. Django configuring MySQL database
- Error starting peacock in manjaro [How to Solve]
- cannot import name ‘_validate_lengths’ from ‘numpy.lib.arraypad’
- Importerror using tensorflow: DLL load failed: the specified program cannot be found
- Scrapy runs a crawler with an error importerror: cannot import name suppress
- (29)RuntimeError: cuda runtime error (999)
- Finally solved the importError: DLLload failed: the specified module could not be found when import matplotlib.pyplot
- [resolved] superset failed to create admin user: error! User already exists user or attributeerror: ‘nonetype’‘
- In Python, import XXX does not report an error, but in IPython (Jupiter notebook)
- ModuleNotFoundError: No module named ‘numpy.testing.nosetester‘
- Importing the multiarray numpy extension module failed
- VsCode+Anaconda+jupyter Error: Kernel died with exit code
- Resolve – keyerror encountered while installing tensorflow GPU: ‘tensorflow’ error
- RuntimeError: NCCL error in: /pytorch/torch/lib/c10d/ProcessGroupNCCL.cpp:784 torch
- Worker failed to boot
- Gunicorn reported error worker failed to boot
- Import Matplotlib.pyplot as plt Error KeyError: ‘pylab’
- Import any QT binding error during installation of evo
- matplotlib error – no module named tkinter
- sys.path.append(), os.path.exists(), os.path.join() and os.makedirs() meaning
solution
pip install PyQt5
<标题>引用 h1>
李
- <> Foad。(2018年11月22日)。导入任何qt绑定、Python – Tensorflow失败。李从https://stackoverflow.com/questions/52346254/importerror-failed-to-import-any-qt-binding-python-tensorflow获取 ol>
- django.core.exceptions . improveconfigured: error loading MySQL DB module. Django configuring MySQL database
- Error starting peacock in manjaro [How to Solve]
- cannot import name ‘_validate_lengths’ from ‘numpy.lib.arraypad’
- Importerror using tensorflow: DLL load failed: the specified program cannot be found
- Scrapy runs a crawler with an error importerror: cannot import name suppress
- (29)RuntimeError: cuda runtime error (999)
- Finally solved the importError: DLLload failed: the specified module could not be found when import matplotlib.pyplot
- [resolved] superset failed to create admin user: error! User already exists user or attributeerror: ‘nonetype’‘
- In Python, import XXX does not report an error, but in IPython (Jupiter notebook)
- ModuleNotFoundError: No module named ‘numpy.testing.nosetester‘
- Importing the multiarray numpy extension module failed
- VsCode+Anaconda+jupyter Error: Kernel died with exit code
- Resolve – keyerror encountered while installing tensorflow GPU: ‘tensorflow’ error
- RuntimeError: NCCL error in: /pytorch/torch/lib/c10d/ProcessGroupNCCL.cpp:784 torch
- Worker failed to boot
- Gunicorn reported error worker failed to boot
- Import Matplotlib.pyplot as plt Error KeyError: ‘pylab’
- Import any QT binding error during installation of evo
- matplotlib error – no module named tkinter
- sys.path.append(), os.path.exists(), os.path.join() and os.makedirs() meaning
div>