Mayavi: pip๋กœ Mayavi ์„ค์น˜ ๋ฌธ์ œ - vtk๋ผ๋Š” ๋ชจ๋“ˆ ์—†์Œ

์— ๋งŒ๋“  2012๋…„ 08์›” 29์ผ  ยท  5์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: enthought/mayavi

๋งˆ์•ผ๋น„๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค.

์ƒํ™ฉ

  • ์ €๋Š” OSX 10.7.3์ด ์„ค์น˜๋œ MacBook Air๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
  • ๋‚˜๋Š” ํŒŒ์ด์ฌ 2.7.2๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค
  • virtualenv ์„ค์น˜ํ–ˆ์Šต๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ์ด ์„ค์น˜์—๋Š” ์‚ฌ์šฉํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.

VTK ํฌํ•จํ•˜์—ฌ ๋ชจ๋“  ์ข…์†์„ฑ์„ ์ˆ˜๋™์œผ๋กœ ์„ค์น˜ํ–ˆ์Šต๋‹ˆ๋‹ค.

VTK ๊ฒฝ์šฐ ์„ค์น˜ ๊ฐ€์ด๋“œ๋ฅผ ๋”ฐ๋ผ ํŒŒ์ด์ฌ ๋ž˜ํผ๋ฅผ ์„ค์น˜ํ–ˆ์Šต๋‹ˆ๋‹ค.

์ด์ œ ์ƒˆ ํ„ฐ๋ฏธ๋„ ์ฐฝ์„ ์—ด๊ณ  ํŒŒ์ด์ฌ์„ ์—ด๋ฉด ์˜ค๋ฅ˜ ์—†์ด vtk ๋ฅผ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋ฌธ์ œ

๋‹ค์Œ ๋ช…๋ น์œผ๋กœ Mayavi๋ฅผ ์„ค์น˜ํ•˜๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.

pip install mayavi

๊ทธ๋Ÿฌ๋‚˜ ๋‹ค์Œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

Downloading/unpacking mayavi
  Running setup.py egg_info for package mayavi
    build_src
    building extension "tvtk.array_ext" sources
    building data_files sources
    build_src: building npy-pkg config files

    no previously-included directories found matching 'artwork'
    no previously-included directories found matching 'docs/pdf'
Requirement already satisfied (use --upgrade to upgrade): apptools in /Library/Python/2.7/site-packages (from mayavi)
Requirement already satisfied (use --upgrade to upgrade): traits in /Library/Python/2.7/site-packages (from mayavi)
Requirement already satisfied (use --upgrade to upgrade): traitsui in /Library/Python/2.7/site-packages (from mayavi)
Requirement already satisfied (use --upgrade to upgrade): configobj in /Library/Python/2.7/site-packages (from apptools->mayavi)
Requirement already satisfied (use --upgrade to upgrade): pyface in /Library/Python/2.7/site-packages (from traitsui->mayavi)
Installing collected packages: mayavi
  Running setup.py install for mayavi
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/Users/Yasser/build/mayavi/setup.py", line 498, in <module>
        **config
      File "/Library/Python/2.7/site-packages/numpy-1.6.1-py2.7-macosx-10.7-intel.egg/numpy/distutils/core.py", line 186, in setup
        return old_setup(**new_attr)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
        dist.run_commands()
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/Library/Python/2.7/site-packages/numpy-1.6.1-py2.7-macosx-10.7-intel.egg/numpy/distutils/command/install.py", line 57, in run
        r = self.setuptools_run()
      File "/Library/Python/2.7/site-packages/numpy-1.6.1-py2.7-macosx-10.7-intel.egg/numpy/distutils/command/install.py", line 31, in setuptools_run
        return old_install_mod._install.run(self)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install.py", line 573, in run
        self.run_command('build')
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/Users/Yasser/build/mayavi/setup.py", line 303, in run
        build_tvtk_classes_zip()
      File "/Users/Yasser/build/mayavi/setup.py", line 290, in build_tvtk_classes_zip
        gen_tvtk_classes_zip()
      File "tvtk/setup.py", line 46, in gen_tvtk_classes_zip
        from code_gen import TVTKGenerator
      File "tvtk/code_gen.py", line 10, in <module>
        import vtk
    ImportError: No module named vtk
    Complete output from command /usr/bin/python -c "import setuptools;__file__='/Users/Yasser/build/mayavi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/53/_trhc_0x0fb6kvx6bw_wrk500000gn/T/pip-Z4hpsW-record/install-record.txt:
    running install

running build

Traceback (most recent call last):

  File "<string>", line 1, in <module>

  File "/Users/Yasser/build/mayavi/setup.py", line 498, in <module>

    **config

  File "/Library/Python/2.7/site-packages/numpy-1.6.1-py2.7-macosx-10.7-intel.egg/numpy/distutils/core.py", line 186, in setup

    return old_setup(**new_attr)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup

    dist.run_commands()

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands

    self.run_command(cmd)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command

    cmd_obj.run()

  File "/Library/Python/2.7/site-packages/numpy-1.6.1-py2.7-macosx-10.7-intel.egg/numpy/distutils/command/install.py", line 57, in run

    r = self.setuptools_run()

  File "/Library/Python/2.7/site-packages/numpy-1.6.1-py2.7-macosx-10.7-intel.egg/numpy/distutils/command/install.py", line 31, in setuptools_run

    return old_install_mod._install.run(self)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install.py", line 573, in run

    self.run_command('build')

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command

    self.distribution.run_command(command)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command

    cmd_obj.run()

  File "/Users/Yasser/build/mayavi/setup.py", line 303, in run

    build_tvtk_classes_zip()

  File "/Users/Yasser/build/mayavi/setup.py", line 290, in build_tvtk_classes_zip

    gen_tvtk_classes_zip()

  File "tvtk/setup.py", line 46, in gen_tvtk_classes_zip

    from code_gen import TVTKGenerator

  File "tvtk/code_gen.py", line 10, in <module>

    import vtk

ImportError: No module named vtk

----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/Users/Yasser/build/mayavi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/53/_trhc_0x0fb6kvx6bw_wrk500000gn/T/pip-Z4hpsW-record/install-record.txt failed with error code 1 in /Users/Yasser/build/mayavi
Storing complete log in /Users/Yasser/Library/Logs/pip.log
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 8, in <module>
    load_entry_point('pip==1.1', 'console_scripts', 'pip')()
  File "/Library/Python/2.7/site-packages/pip-1.1-py2.7.egg/pip/__init__.py", line 116, in main
    return command.main(args[1:], options)
  File "/Library/Python/2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py", line 141, in main
    log_fp = open_logfile(log_fn, 'w')
  File "/Library/Python/2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py", line 168, in open_logfile
    log_fp = open(filename, mode)
IOError: [Errno 13] Permission denied: '/Users/Yasser/Library/Logs/pip.log'

๋ฌธ์ œ๋Š” vtk ์žˆ๋‹ค๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค.

์•„๋ฌด๋„ ๋‚˜๋ฅผ ๋„์šธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

๊ธฐํƒ€ ์„ธ๋ถ€ ์‚ฌํ•ญ

sudo pip install mayavi ํ•ด๋„ ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

๋‚˜๋Š” ์ด๊ฒƒ์ด ๋„์›€์ด ๋  ๊ฒƒ์ด๋ผ๊ณ  ์ƒ๊ฐํ–ˆ๋‹ค

โ€บ which python
/usr/local/bin/python

โ€บ python
Python 2.7.2 (default, Feb 17 2012, 13:57:55) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import vtk
>>> vtk
<module 'vtk' from '/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/VTK-5.10.0-py2.7.egg/vtk/__init__.pyc'>
>>> 

๋‚ด PYTHONPATH ์ด(๊ฐ€) ๋น„์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

๋ชจ๋“  5 ๋Œ“๊ธ€

์•ˆ๋…•ํ•˜์„ธ์š” Yasser๋‹˜

pip๊ฐ€ ์‚ฌ์šฉํ•˜๋Š” Python์ด vtk๋ฅผ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์—†๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ๋‹น์‹ ์€ ํ™•์ธํ–ˆ๋‹ค
vtk๋ฅผ ์„ฑ๊ณต์ ์œผ๋กœ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ์ง€๋งŒ ๋‹ค๋ฅธ Python์ด ์žˆ์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
์‹คํ–‰ ํŒŒ์ผ์ด ์„ค์น˜๋˜๊ณ  pip๊ฐ€ ๋‹ค์Œ๊ณผ ๋‹ค๋ฅธ ๊ฒƒ์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
vtk๋ฅผ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋‹น์‹ ์˜ ์—ญ์ถ”์ ์„ ๋ณด๋ฉด, Python that pip
์‚ฌ์šฉ์€ /usr/bin/python์ž…๋‹ˆ๋‹ค.

HTH,

๊ฒŒ์ผ ์‚ฌ๋žŒ

2012๋…„ 8์›” 29์ผ ์ˆ˜์š”์ผ ์˜ค์ „ 10:40:26 -0700์— Yasser Souri๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ผ์Šต๋‹ˆ๋‹ค.

๋งˆ์•ผ๋น„๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค.

์ƒํ™ฉ

โ€ข ์ €๋Š” OSX 10.7.3์ด ์„ค์น˜๋œ MacBook Air๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
โ€ข ์ €๋Š” ํŒŒ์ด์ฌ 2.7.2๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค
โ€ข virtualenv๋ฅผ ์„ค์น˜ํ–ˆ์Šต๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ์ด ์„ค์น˜์—๋Š” ์‚ฌ์šฉํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.

VTK๋ฅผ ํฌํ•จํ•˜์—ฌ ๋ชจ๋“  ์ข…์†์„ฑ์„ ์ˆ˜๋™์œผ๋กœ ์„ค์น˜ํ–ˆ์Šต๋‹ˆ๋‹ค.

VTK์˜ ๊ฒฝ์šฐ ์„ค์น˜ ๊ฐ€์ด๋“œ๋ฅผ ๋”ฐ๋ผ ํŒŒ์ด์ฌ ๋ž˜ํผ๋ฅผ ์„ค์น˜ํ–ˆ์Šต๋‹ˆ๋‹ค.

์ด์ œ ์ƒˆ ํ„ฐ๋ฏธ๋„ ์ฐฝ์„ ์—ด๊ณ  ํŒŒ์ด์ฌ์„ ์—ด๋ฉด vtk ์—†์ด
๋ชจ๋“  ์˜ค๋ฅ˜.

๋ฌธ์ œ

๋‹ค์Œ ๋ช…๋ น์œผ๋กœ Mayavi๋ฅผ ์„ค์น˜ํ•˜๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.

ํ• ์„ค์น˜ ๋งˆ์•ผ๋น„

๊ทธ๋Ÿฌ๋‚˜ ๋‹ค์Œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

๋งˆ์•ผ๋น„ ๋‹ค์šด๋กœ๋“œ/ํ’€๊ธฐ
ํŒจํ‚ค์ง€ mayavi์— ๋Œ€ํ•ด setup.py egg_info ์‹คํ–‰
build_src
๊ฑด๋ฌผ ํ™•์žฅ "tvtk.array_ext" ์†Œ์Šค
data_files ์†Œ์Šค ๊ตฌ์ถ•
build_src: npy-pkg ๊ตฌ์„ฑ ํŒŒ์ผ ๋นŒ๋“œ

no previously-included directories found matching 'artwork'
no previously-included directories found matching 'docs/pdf'

์š”๊ตฌ ์‚ฌํ•ญ์ด ์ด๋ฏธ ์ถฉ์กฑ๋จ(์—…๊ทธ๋ ˆ์ด๋“œํ•˜๋ ค๋ฉด --upgrade ์‚ฌ์šฉ): /Library/Python/2.7/site-packages์˜ apptools(Mayavi์—์„œ)
์š”๊ตฌ ์‚ฌํ•ญ์ด ์ด๋ฏธ ์ถฉ์กฑ๋จ(์—…๊ทธ๋ ˆ์ด๋“œํ•˜๋ ค๋ฉด --upgrade ์‚ฌ์šฉ): /Library/Python/2.7/site-packages์˜ ํŠน์„ฑ(Mayavi์—์„œ)
์š”๊ตฌ ์‚ฌํ•ญ์ด ์ด๋ฏธ ์ถฉ์กฑ๋จ(์—…๊ทธ๋ ˆ์ด๋“œํ•˜๋ ค๋ฉด --upgrade ์‚ฌ์šฉ): /Library/Python/2.7/site-packages์˜ traitsui(Mayavi์—์„œ)
์š”๊ตฌ ์‚ฌํ•ญ์ด ์ด๋ฏธ ์ถฉ์กฑ๋จ(์—…๊ทธ๋ ˆ์ด๋“œํ•˜๋ ค๋ฉด --upgrade ์‚ฌ์šฉ): /Library/Python/2.7/site-packages์˜ configobj(apptools->mayavi์—์„œ)
์š”๊ตฌ ์‚ฌํ•ญ์ด ์ด๋ฏธ ์ถฉ์กฑ๋จ(์—…๊ทธ๋ ˆ์ด๋“œํ•˜๋ ค๋ฉด --upgrade ์‚ฌ์šฉ): /Library/Python/2.7/site-packages์˜ pyface(traitsui->mayavi์—์„œ)
์ˆ˜์ง‘๋œ ํŒจํ‚ค์ง€ ์„ค์น˜: mayavi
Mayavi์šฉ setup.py install ์‹คํ–‰
์—ญ์ถ”์ (๊ฐ€์žฅ ์ตœ๊ทผ ํ˜ธ์ถœ ๋งˆ์ง€๋ง‰):
ํŒŒ์ผ "", 1ํ–‰, ์—์„œ
ํŒŒ์ผ "/Users/Yasser/build/mayavi/setup.py", 498ํ–‰,
๊ตฌ์„ฑ์„ค์ •์—์„œ ํŒŒ์ผ "/Library/Python/2.7/site-packages/numpy-1.6.1-py2.7-macosx-10.7-intel.egg/numpy/distutils/core.py", 186ํ–‰old_setup( new_attr)
์„ค์ •์—์„œ ํŒŒ์ผ "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", 152ํ–‰
dist.run_commands()
run_commands์˜ "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py" ํŒŒ์ผ, 953ํ–‰
self.run_command(cmd)
run_command์—์„œ ํŒŒ์ผ "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", ๋ผ์ธ 972
cmd_obj.run()
ํŒŒ์ผ "/Library/Python/2.7/site-packages/numpy-1.6.1-py2.7-macosx-10.7-intel.egg/numpy/distutils/command/install.py", ๋ผ์ธ 57, ์‹คํ–‰ ์ค‘
r = self.setuptools_run()
setuptools_run์—์„œ ํŒŒ์ผ "/Library/Python/2.7/site-packages/numpy-1.6.1-py2.7-macosx-10.7-intel.egg/numpy/distutils/command/install.py", ์ค„ 31
old_install_mod._install.run(์ž์ฒด) ๋ฐ˜ํ™˜
ํŒŒ์ผ "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install.py", ๋ผ์ธ 573, ์‹คํ–‰ ์ค‘
self.run_command('๋นŒ๋“œ')
run_command์—์„œ ํŒŒ์ผ "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", 326ํ–‰
self.distribution.run_command(๋ช…๋ น)
run_command์—์„œ ํŒŒ์ผ "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", 972ํ–‰
cmd_obj.run()
ํŒŒ์ผ "/Users/Yasser/build/mayavi/setup.py", ๋ผ์ธ 303, ์‹คํ–‰ ์ค‘
build_tvtk_classes_zip()
build_tvtk_classes_zip์˜ ํŒŒ์ผ "/Users/Yasser/build/mayavi/setup.py", 290ํ–‰
gen_tvtk_classes_zip()
gen_tvtk_classes_zip์˜ ํŒŒ์ผ "tvtk/setup.py", 46ํ–‰
code_gen ๊ฐ€์ ธ์˜ค๊ธฐ TVTKGenerator์—์„œ
ํŒŒ์ผ "tvtk/code_gen.py", 10ํ–‰,
์ˆ˜์ž… vtk
ImportError: vtk๋ผ๋Š” ๋ชจ๋“ˆ์ด ์—†์Šต๋‹ˆ๋‹ค.
/usr/bin/python -c "import setuptools;__file__='/Users/Yasser/build/mayavi/setup.py';exec(compile(open( file ).read().replace('rn ', 'n'), ํŒŒ์ผ , 'exec'))" install --single-version-externally-managed --record /var/folders/53/_trhc_0x0fb6kvx6bw_wrk500000gn/T/pip-Z4hpsW-record/install-record.txt :
์„ค์น˜ ์‹คํ–‰

๋นŒ๋“œ ์‹คํ–‰

์—ญ์ถ”์ (๊ฐ€์žฅ ์ตœ๊ทผ ํ˜ธ์ถœ ๋งˆ์ง€๋ง‰):

ํŒŒ์ผ "", 1ํ–‰, ์—์„œ

ํŒŒ์ผ "/Users/Yasser/build/mayavi/setup.py", 498ํ–‰,

**config

์„ค์ •์—์„œ ํŒŒ์ผ "/Library/Python/2.7/site-packages/numpy-1.6.1-py2.7-macosx-10.7-intel.egg/numpy/distutils/core.py", 186ํ–‰

return old_setup(**new_attr)

ํŒŒ์ผ "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", 152ํ–‰, ์„ค์ •

dist.run_commands()

run_commands์—์„œ ํŒŒ์ผ "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", ์ค„ 953

self.run_command(cmd)

run_command์—์„œ ํŒŒ์ผ "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", 972ํ–‰

cmd_obj.run()

ํŒŒ์ผ "/Library/Python/2.7/site-packages/numpy-1.6.1-py2.7-macosx-10.7-intel.egg/numpy/distutils/command/install.py", ๋ผ์ธ 57, ์‹คํ–‰ ์ค‘

r = self.setuptools_run()

setuptools_run์—์„œ ํŒŒ์ผ "/Library/Python/2.7/site-packages/numpy-1.6.1-py2.7-macosx-10.7-intel.egg/numpy/distutils/command/install.py", ์ค„ 31

return old_install_mod._install.run(self)

ํŒŒ์ผ "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install.py", ๋ผ์ธ 573, ์‹คํ–‰ ์ค‘

self.run_command('build')

run_command์—์„œ ํŒŒ์ผ "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", 326ํ–‰

self.distribution.run_command(command)

run_command์—์„œ ํŒŒ์ผ "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", ๋ผ์ธ 972

cmd_obj.run()

ํŒŒ์ผ "/Users/Yasser/build/mayavi/setup.py", ๋ผ์ธ 303, ์‹คํ–‰ ์ค‘

build_tvtk_classes_zip()

build_tvtk_classes_zip์˜ ํŒŒ์ผ "/Users/Yasser/build/mayavi/setup.py", 290ํ–‰

gen_tvtk_classes_zip()

gen_tvtk_classes_zip์˜ ํŒŒ์ผ "tvtk/setup.py", 46ํ–‰

from code_gen import TVTKGenerator

ํŒŒ์ผ "tvtk/code_gen.py", 10ํ–‰,

import vtk

ImportError: vtk๋ผ๋Š” ๋ชจ๋“ˆ์ด ์—†์Šต๋‹ˆ๋‹ค.


๋ช…๋ น /usr/bin/python -c "setuptools ๊ฐ€์ ธ์˜ค๊ธฐ; ํŒŒ์ผ ='/Users/Yasser/build/mayavi/setup.py';exec(compile(open( ํŒŒ์ผ ).read().replace('rn', ' n'), ํŒŒ์ผ , 'exec'))" install --single-version-externally-managed --record /var/folders/53/_trhc_0x0fb6kvx6bw_wrk500000gn/T/pip-Z4hpsW-record/install-record.txt ์˜ค๋ฅ˜๋กœ ์‹คํŒจ /Users/Yasser/build/mayavi์˜ ์ฝ”๋“œ 1
/Users/Yasser/Library/Logs/pip.log์— ์ „์ฒด ๋กœ๊ทธ์ธ ์ €์žฅ
์—ญ์ถ”์ (๊ฐ€์žฅ ์ตœ๊ทผ ํ˜ธ์ถœ ๋งˆ์ง€๋ง‰):
ํŒŒ์ผ "/usr/local/bin/pip", 8ํ–‰,
load_entry_point('pip==1.1', 'console_scripts', 'pip')()
ํŒŒ์ผ "/Library/Python/2.7/site-packages/pip-1.1-py2.7.egg/pip/__init__.py", 116ํ–‰, ๋ฉ”์ธ
return command.main(args[1:], ์˜ต์…˜)
ํŒŒ์ผ "/Library/Python/2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py", ์ค„ 141, ๊ธฐ๋ณธ
log_fp = open_logfile(log_fn, 'w')
ํŒŒ์ผ "/Library/Python/2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py", 168ํ–‰, open_logfile
log_fp = ์—ด๊ธฐ(ํŒŒ์ผ ์ด๋ฆ„, ๋ชจ๋“œ)
IOError: [Errno 13] ๊ถŒํ•œ ๊ฑฐ๋ถ€: '/Users/Yasser/Library/Logs/pip.log'

๋ฌธ์ œ๋Š” vt์— ์žˆ๋‹ค๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค.

์•„๋ฌด๋„ ๋‚˜๋ฅผ ๋„์šธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

๊ธฐํƒ€ ์„ธ๋ถ€ ์‚ฌํ•ญ

sudo pip install mayavi๋ฅผ ์‹คํ–‰ํ•ด๋„ ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

๋‚˜๋Š” ์ด๊ฒƒ์ด ๋„์›€์ด ๋  ๊ฒƒ์ด๋ผ๊ณ  ์ƒ๊ฐํ–ˆ๋‹ค

โ€บ ์–ด๋–ค ํŒŒ์ด์ฌ
/usr/local/bin/python

โ€บ ํŒŒ์ด์ฌ
Python 2.7.2(๊ธฐ๋ณธ๊ฐ’, 2012๋…„ 2์›” 17์ผ, 13:57:55)
[GCC 4.2.1(Apple Inc. ๋นŒ๋“œ 5658 ๊ธฐ๋ฐ˜)(LLVM ๋นŒ๋“œ 2335.15.00)] on darwin
์ž์„ธํ•œ ๋‚ด์šฉ์„ ๋ณด๋ ค๋ฉด "๋„์›€๋ง", "์ €์ž‘๊ถŒ", "ํฌ๋ ˆ๋”ง" ๋˜๋Š” "๋ผ์ด์„ผ์Šค"๋ฅผ ์ž…๋ ฅํ•˜์‹ญ์‹œ์˜ค.

์ˆ˜์ž… vtk
vtk

๋‚ด PYTHONPATH๊ฐ€ ๋น„์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

โ€”
์ด ์ด๋ฉ”์ผ์— ์ง์ ‘ ๋‹ต์žฅํ•˜๊ฑฐ๋‚˜ GitHub์—์„œ ํ™•์ธํ•˜์„ธ์š”.

*

Gael Varoquaux
Researcher, INRIA Parietal
Laboratoire de Neuro-Imagerie Assistee par Ordinateur
NeuroSpin/CEA Saclay , Bat 145, 91191 Gif-sur-Yvette France
Phone:  ++ 33-1-69-08-79-68
http://gael-varoquaux.info            http://twitter.com/GaelVaroquaux

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

์ด์ œ ํ•ด๊ฒฐ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

http://stackoverflow.com/questions/12182052/installing-mayavi-with-pip-no-module-named-vtk/12206868#12206868

์ข‹์€. ์Šคํƒ ์˜ค๋ฒ„ํ”Œ๋กœ๋Š” ์•„๋งˆ๋„ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์งˆ๋ฌธ์„ ํ•˜๊ธฐ์— ๊ฐ€์žฅ ์ข‹์€ ์žฅ์†Œ์ผ ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์‚ฌ๋žŒ๋“ค์€ ๋‚˜๋ณด๋‹ค ๋” ๋ฐ˜์‘์ด ์ข‹์Šต๋‹ˆ๋‹ค.

Windows์—์„œ ๋™์ผํ•œ ๋ฌธ์ œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ํ•์ด ๋งž์Šต๋‹ˆ๋‹ค. ์•„๋ฌด๋„ ๋„์šธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?
๊ทธ๊ฑด ๊ทธ๋ ‡๊ณ  - ์ด๋ฆ„์ด 'vtk'์ธ ๋ชจ๋“ˆ์€ ์—†๊ณ  'pyvtk'๋งŒ ์žˆ์Šต๋‹ˆ๋‹ค.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰