RuntimeError: module compiled against API version 0xf but this version of numpy is 0xd

写的程序运行不了,最终发现问题为numpy版本太低导致。重新pip一下就好了

pip install numpy --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple

你可能感兴趣的:(python,pycharm,pytorch)