I am trying to plot something with matplotlib but when I import it like this:
import matplotlib.pyplot as plt
in Pycharm Community 2016.1.4 using Anaconda version 3.5.1, I get this error:
from PyQt4 import QtCore
SystemError: initialization of QtCore failed without raising an exception
What is wrong here? I havent found anything via google or here on SO that is the same as my problem.
from PyQt4 import QtCore
without importing matplotlib and will it give the same error? – Joofrom PyQt5 import QtCore
in PyCharm, I receive the following error:/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6/bin/python3.6 /Users/me/pyfo/project/testing.py Traceback (most recent call last): File "/Users/me/pyfo/project/testing.py", line 1, in <module> from PyQt5 import QtCore SystemError: initialization of QtCore failed without raising an exception Process finished with exit code 1
– JacintheSystemError: initialization of QtCore failed without raising an exception
error despite that pyqt is installed. Check your version. I had version 5.9.2. Upgrading to 5.15 fixed the problem for me. – Arris