在import 相应包之前, 添加: import pyximport pyximport.install() 即可. 转载于:https://www.cnblogs.com/ZhengPeng7/p/8706657.html