问题:ModuleNotFoundError: No module named ‘mathutils’
解决方法:
git clone https://gitlab.com/ideasman42/blender-mathutils.git
cd blender-mathutils/
python3 setup.py build
问题1:src/mathutils/mathutils.c:79:24: error: incompatible type for argument 1 of ‘_Py_HashDouble’
y = _Py_HashDouble(NULL, (double)(array[i++]));
第79行有问题,解决方法 :
打开文件 :sudo gedit src/mathutils/mathutils.c
将79行改为:y = _Py_HashDouble((double)(array[i++]));
继续安装mathutils:
python3 setup.py build
sudo python3 setup.py install
安装成功!!!