VTK / Python / 编译

发布于 2024-11-30 00:29:29 字数 210 浏览 0 评论 0原文

我想在 Windows 系统上将 VTK 与 Python 一起使用。

看来我无法使用 Windows 安装程序,但“必须使用 CMake 和本机构建系统从源代码编译 VTK”。到目前为止我已经安装了CMake。

但现在我想知道如何进行?看来我需要 MS Visual Studio 来创建项目文件?!

但我没有 Visual Studio。那我能做什么呢?

I want to use VTK together with Python on a Windows system.

It seems that I cannot use the windows installer but "have to compile VTK from source code using CMake and a native build system". So far I have installed CMake.

But now I wonder how to proceed? It seems that I need MS Visual Studio to create the project files?!

But I don't have Visual Studio. So what can I do?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

只是在用心讲痛 2024-12-07 00:29:29

这里有一个 VTK 安装程序:

http://www.lfd.uci.edu/~gohlke /pythonlibs/

它似乎对我来说工作得很好,而且比编译它要好。

There is a VTK installer here:

http://www.lfd.uci.edu/~gohlke/pythonlibs/

It appears to work fine for me and it beats compiling it.

秋千易 2024-12-07 00:29:29

当您问这个问题时情况并非如此,但从版本 6.1 开始,vtk-python 附带了 Windows(linux 和 osx)安装程序。请参阅他们的下载页面了解更多信息。

It wasn't the case when you asked this question, but since version 6.1, vtk-python ships with a Windows (linux and osx) installer. See their download page for more information.

通知家属抬走 2024-12-07 00:29:29

您只需安装 pythonxy 框架即可将 VTK 与 python 一起使用,它只是一个带有许多库的 python,包括 VTK、ITK、Qt 等,而且它有很好的文档,并且有很多示例,全部都是用 python 编写的。我向你推荐它,我已经用它做了很多工作,而且非常神奇。
尝试一下吧。您所要做的就是在安装程序向导中选择工具 VTK,它将随 vt​​k 一起安装。

You can use VTK with python just installing pythonxy framework, it is just a python with many many libraries included VTK, ITK, Qt and many other, also it is very well documented, and also have many examples, all in python. I recommend it to you, I have worked a lot with it, and is very amazing.
Just make a try. All you have to do is in the installer wizard select among the tools, VTK, and it will be installed with vtk.

烟燃烟灭 2024-12-07 00:29:29

如果 32 位对您来说足够了,我建议您查看 Python(x,y)。您不仅可以获得 VTK,还可以获得许多其他有用的科学库。

If 32bit is enough for you, I suggest looking into Python(x,y). You get not only VTK but a whole lot of other useful scientific libraries.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文