我在用水蟒,我用水蟒建造了vtk

conda install vtk

vtk的默认构建没有gl2ps,我想知道如何使用conda在启用gl2ps的情况下构建(或者重建)vtk。
实际上,我正在尝试执行以下示例代码:
 from mayavi import mlab
 mlab.test_plot3d()
 mlab.savefig(temp.eps)

但要知道错误
Saving as a vector PS/EPS/PDF/TeX file using GL2PS is either not supported by your version of VTK or you have not configured VTK to work with GL2PS -- read the documentation for the vtkGL2PSExporter class.

谢谢你
编辑
我下载了Coda食谱
git clone https://github.com/conda/conda-recipes.git

即使我没有编辑包含gl2ps的文件
BUILD START: vtk-5.10.1-py27_1
Fetching package metadata: ......
Solving package specifications: .
The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    setuptools-13.0.2          |           py27_0         435 KB

The following NEW packages will be INSTALLED:

    cmake:      3.0.1-0
    openssl:    1.0.1k-0
    pip:        6.0.8-py27_0
    python:     2.7.9-1
    readline:   6.2-2
    setuptools: 13.0.2-py27_0
    sqlite:     3.8.4.1-0
    system:     5.8-1
    tk:         8.5.15-0
    zlib:       1.2.8-0

Fetching packages ...
setuptools-13. 100% |######################################################################################################################################################################################| Time: 0:00:00 463.16 kB/s
Extracting packages ...
[      COMPLETE      ] |########################################################################################################################################################################################################| 100%
Linking packages ...
[      COMPLETE      ] |########################################################################################################################################################################################################| 100%
Source cache directory is: /home/users/user/anaconda/conda-bld/src_cache
Downloading source to cache: vtk-5.10.1.tar.gz
An unexpected error has occurred, please consider sending the
following traceback to the conda GitHub issue tracker at:

    https://github.com/conda/conda-build/issues

Include the output of the command 'conda info' in your report.


Traceback (most recent call last):
  File "/home/users/user/anaconda/bin/conda-build", line 5, in <module>
    sys.exit(main())
  File "/home/users/user/anaconda/lib/python2.7/site-packages/conda_build/main_build.py", line 110, in main
    args_func(args, p)
  File "/home/users/user/anaconda/lib/python2.7/site-packages/conda_build/main_build.py", line 308, in args_func
    args.func(args, p)
  File "/home/users/user/anaconda/lib/python2.7/site-packages/conda_build/main_build.py", line 268, in execute
    build.build(m, verbose=not args.quiet, post=post)
  File "/home/users/user/anaconda/lib/python2.7/site-packages/conda_build/build.py", line 304, in build
    source.provide(m.path, m.get_section('source'))
  File "/home/users/user/anaconda/lib/python2.7/site-packages/conda_build/source.py", line 221, in provide
    unpack(meta)
  File "/home/users/user/anaconda/lib/python2.7/site-packages/conda_build/source.py", line 60, in unpack
    src_path = download_to_cache(meta)
  File "/home/users/user/anaconda/lib/python2.7/site-packages/conda_build/source.py", line 48, in download_to_cache
    download(meta['url'], path)
KeyError: 'url'

最佳答案

用于构建vtk的配方是here您应该修改它以包含该包并使用conda build vtk/构建。

关于python - 如何使用conda在启用了gl2ps的情况下安装vtk,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/28876706/

10-12 16:46