user3813234
user3813234

Reputation: 1682

SystemError: initialization of QtCore failed without raising an exception

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.

Upvotes: 6

Views: 8340

Answers (2)

Flex beats
Flex beats

Reputation: 1

Solved this issue with :

conda install -c conda-forge pyqt

Upvotes: -1

Rahul Pandey
Rahul Pandey

Reputation: 125

I would Suggest you do these things it will definitely work as it worked for me.

python -m pip install PyQt5

This will completely resolve this issue by re-installing it with all dependencies required.

Thanks.

Upvotes: 5

Related Questions