下载库的源码
https://pypi.org
获取maya对应版本的devikit包
https://www.autodesk.com/developer-network/platform-technologies/maya?_ga=2.197515945.725087356.1578820079-602794860.1540916958
将对应的文件夹拷贝进maya的文件夹下
获取maya对应版本的VS (我这是maya2018版)
编译库
管理员运行
编译源码:
CMD命令 :
"源码目录""C:\Program Files\Autodesk\Maya2018\bin\mayapy.exe" setup.py build_ext -I "C:\Program Files\Autodesk\Maya2018\include\python2.7" -L "C:\Program Files\Autodesk\Maya2018\lib"
安装编译后的版本:
CMD命令:
"C:\Program Files\Autodesk\Maya2018\bin\mayapy.exe" setup.py build install
添加INCLUDE LIB(可以添加多个):
CMD命令:
set INCLUDE=C:\Program Files\Autodesk\Maya2018\include\python2.7;%INCLUDE%
set LIB=C:\Program Files\Autodesk\Maya2018\lib;%LIB%
来源:CSDN
作者:黄瓜柠檬薯片
链接:https://blog.csdn.net/tiger_666/article/details/103947532