-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matplotlib fails on new install (of Spyder with Anaconda3) #4338
Comments
How are you running |
Just pressing F5 after start seems to try to run it in IPython. Now I checked the same after switching to the Python console first; here it actually works! (of course then the figure opens in separate window in background) And it is "temp.py" of course, not "tmp.py". Sorry. |
Please post the contents of |
Oh, for some reason I thought this was an example file provided by Spyder or Anaconda3. Sorry if this is not the case. It was supposed to be a fresh install of Anaconda3, though. # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
import matplotlib.pyplot as plt
import numpy as np
x=np.linspace(0,10,100)
plt.plot(x,np.cos(x)+x)
plt.show() |
Ok, so your last comment made me check more closely the machine history. It is possible hat there was a prior version of Anaconda not perfectly removed (although it should have been). So it could be that it is (something like) this (old) issue really: ContinuumIO/anaconda-issues#1068 Maybe just close this for now. I'll check on a fresh install at some point and if it happens again, I'll reopen. |
Ok, let us know how this ends. |
Description
On a new install as part of Anaconda3, Spyder fails to execute the demo program due to failure of importing matplotlib.
Not sure if this is an Anaconda or Spyder problem to be honest, but the packages seem to be there. Maybe a wrong matplotlib backend is used by default?
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Spyder should ouptut a figure in some way.
Instead, it fails with
[...]
File "...\Anaconda3\lib\site-packages\matplotlib\backends\qt_compat.py", line 137, in
from PyQt4 import QtCore, QtGui
Please provide any additional information below
Spyder install was part of Anaconda3 (Version 4.3.1). qt5 5.6 and pyqt5 are present.
Version and main components
Dependencies
The text was updated successfully, but these errors were encountered: