When opening console getting following error:
Python 3.6.5 |Anaconda custom (64-bit)| (default, Apr 29 2018, 16:14:56)
Type "copyright", "credits" or "license" for more information.
IPython 6.5.0 -- An enhanced Interactive Python.
NOTE: The following error appeared when setting your Matplotlib backend
Traceback (most recent call last):
File "/home/nd/anaconda3/lib/python3.6/site-packages/spyder_kernels/console/kernel.py", line 471, in _set_mpl_backend
get_ipython().run_line_magic(magic, backend)
File "/home/nd/anaconda3/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2131, in run_line_magic
result = fn(*args,kwargs)
File "", line 2, in matplotlib
File "/home/nd/anaconda3/lib/python3.6/site-packages/IPython/core/magic.py", line 187, in
call = lambda f, *a, *k: f(a, k)
File "/home/nd/anaconda3/lib/python3.6/site-packages/IPython/core/magics/pylab.py", line 99, in matplotlib
gui, backend = self.shell.enable_matplotlib(args.gui)
File "/home/nd/anaconda3/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3049, in enable_matplotlib
pt.activate_matplotlib(backend)
File "/home/nd/anaconda3/lib/python3.6/site-packages/IPython/core/pylabtools.py", line 310, in activate_matplotlib
import matplotlib.pyplot
File "/home/nd/anaconda3/lib/python3.6/site-packages/matplotlib/pyplot.py", line 115, in
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/home/nd/anaconda3/lib/python3.6/site-packages/matplotlib/backends/init.py", line 62, in pylab_setup
[backend_name], 0)
File "/home/nd/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt4agg.py", line 9, in
from .backend_qt5agg import (
File "/home/nd/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py", line 15, in
from .backend_qt5 import (
File "/home/nd/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py", line 19, in
import matplotlib.backends.qt_editor.figureoptions as figureoptions
File "/home/nd/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_editor/figureoptions.py", line 20, in
import matplotlib.backends.qt_editor.formlayout as formlayout
File "/home/nd/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_editor/formlayout.py", line 54, in
from matplotlib.backends.qt_compat import QtGui, QtWidgets, QtCore
File "/home/nd/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_compat.py", line 153, in
from PyQt4 import QtCore, QtGui
ModuleNotFoundError: No module named 'PyQt4'
Actual Behavior
When opening console getting following error: Python 3.6.5 |Anaconda custom (64-bit)| (default, Apr 29 2018, 16:14:56) Type "copyright", "credits" or "license" for more information.
IPython 6.5.0 -- An enhanced Interactive Python.
NOTE: The following error appeared when setting your Matplotlib backend
Traceback (most recent call last): File "/home/nd/anaconda3/lib/python3.6/site-packages/spyder_kernels/console/kernel.py", line 471, in _set_mpl_backend get_ipython().run_line_magic(magic, backend) File "/home/nd/anaconda3/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2131, in run_line_magic result = fn(*args,kwargs) File "", line 2, in matplotlib
File "/home/nd/anaconda3/lib/python3.6/site-packages/IPython/core/magic.py", line 187, in
call = lambda f, *a, *k: f(a, k)
File "/home/nd/anaconda3/lib/python3.6/site-packages/IPython/core/magics/pylab.py", line 99, in matplotlib
gui, backend = self.shell.enable_matplotlib(args.gui)
File "/home/nd/anaconda3/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3049, in enable_matplotlib
pt.activate_matplotlib(backend)
File "/home/nd/anaconda3/lib/python3.6/site-packages/IPython/core/pylabtools.py", line 310, in activate_matplotlib
import matplotlib.pyplot
File "/home/nd/anaconda3/lib/python3.6/site-packages/matplotlib/pyplot.py", line 115, in
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/home/nd/anaconda3/lib/python3.6/site-packages/matplotlib/backends/init.py", line 62, in pylab_setup
[backend_name], 0)
File "/home/nd/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt4agg.py", line 9, in
from .backend_qt5agg import (
File "/home/nd/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py", line 15, in
from .backend_qt5 import (
File "/home/nd/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py", line 19, in
import matplotlib.backends.qt_editor.figureoptions as figureoptions
File "/home/nd/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_editor/figureoptions.py", line 20, in
import matplotlib.backends.qt_editor.formlayout as formlayout
File "/home/nd/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_editor/formlayout.py", line 54, in
from matplotlib.backends.qt_compat import QtGui, QtWidgets, QtCore
File "/home/nd/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_compat.py", line 153, in
from PyQt4 import QtCore, QtGui
ModuleNotFoundError: No module named 'PyQt4'
Expected Behavior
Just simply open spyder
Steps to Reproduce
I am just opens spyder
Anaconda or Miniconda version:
Name Version Build Channel
anaconda custom py36hbbc8b67_0
anaconda-client 1.6.14 py36_0
anaconda-navigator 1.6.2 py36_0
anaconda-project 0.8.2 py36h44fb852_0
Operating System:
Ubuntu 16.04
conda info
conda list --show-channel-urls