Jür*_* K. 5 python error-handling numpy pycharm pandas
我有给定的Python代码,我在PyCharm的venv中使用它.
from keras.applications.resnet50 import ResNet50
from keras.preprocessing import image
from keras.applications.resnet50 import preprocess_input, decode_predictions
import numpy as np
print (np.__version__)
Run Code Online (Sandbox Code Playgroud)
代码抛出以下异常:
File "type.pxd", line 9, in init mtrand
ValueError: builtins.type has the wrong size, try recompiling. Expected 840, got 864
PyDev console: starting.
Python 3.5.0a4 (v3.5.0a4:413e0e0004f4, Apr 19 2015, 18:01:47) [MSC v.1900 64 bit (AMD64)] on win32
Run Code Online (Sandbox Code Playgroud)
我已经看过这个类似的主题, 我在描述中升级了所有内容:
pip install --upgrade numpy
pip install --upgrade scipy
pip install --upgrade pandas
Run Code Online (Sandbox Code Playgroud)
此外还有特定的熊猫版本.
pip install pandas==0.13.1
Run Code Online (Sandbox Code Playgroud)
我仍然得到同样的例外.你还有其他建议吗?提前致谢