簡體   English   中英

如何安裝使用conda啟用gl2ps的vtk

[英]How to install vtk with gl2ps enabled using conda

我正在使用anaconda,我用conda建立了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-recipes

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的配方就在這里 您應該修改它以包含該包並使用conda build vtk/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM