我想使用matplotlib绘图,但当我像这样导入它时:
import matplotlib.pyplot as plt
在使用Anaconda版本3.5.1的Pycharm Community 2016.1.4中,我遇到了这个错误:
from PyQt4 import QtCore
SystemError: initialization of QtCore failed without raising an exception
这里出了什么问题?我在谷歌和SO上都没有找到与我的问题相同的解决方案。
from PyQt4 import QtCore
,看看是否会出现相同的错误? - ImportanceOfBeingErnestfrom PyQt5 import QtCore
时,我收到以下错误: `/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 exceptionProcess finished with exit code 1 ` - gmonz