首先下载这个fork:
johnbanq/mesh at fix/MSVC_compilation (github.com)https://github.com/johnbanq/mesh/tree/fix/MSVC_compilation根据提示,先安装pyOpenGL,然后使用如下命令:
pip install --no-deps --install-option="--boost-location=<path_to_your_boost>" --verbose --no-cache-dir .
如果出现:
error: Microsoft Visual C++ 14.0 is required.
可以按照这个帖子来安装:
Microsoft Visual C++ 14.0 is required解决方法 - 知乎 (zhihu.com)https://zhuanlan.zhihu.com/p/126669852再次尝试安装psbody,如果出现:
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
安装boost:
(59条消息) Boost(1):Boost库简介及安装_翔底的博客-CSDN博客_boost库https://blog.csdn.net/rangfei/article/details/122276395记得修改“--boost-location”......
PS 1:如果出现zmq错误,则运行 pip install pyzmq