“sudo easy_install python-graph-core”를 수행하는 python-setuptools 오류


0

python-setuptools의 일부인 easy_install을 사용하면 다음 오류가 발생합니다.

$ sudo easy_install python-graph-core
[sudo] password for dan: 
Searching for python-graph-core
Reading http://pypi.python.org/simple/python-graph-core/
Reading http://code.google.com/p/python-graph/
Reading http://code.google.com/p/python-graph/downloads/list?can=1
Reading http://code.google.com/p/python-graph/downloads/list
Best match: python-graph-core 1.7.0
Downloading http://python-graph.googlecode.com/files/python-graph-core-1.7.0.tar.gz
Processing python-graph-core-1.7.0.tar.gz
Running python-graph-core-1.7.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-GwpYiM/python-graph-core-1.7.0/egg-dist-tmp-1yqbyV
setup.py:8: Warning: 'as' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
  File "/usr/bin/easy_install", line 8, in <module>
    load_entry_point('setuptools==0.6c9', 'console_scripts', 'easy_install')()
  File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 1671, in main
    with_ei_usage(lambda:
  File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 1659, in with_ei_usage
    return f()
  File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 1675, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 211, in run
    self.easy_install(spec, not self.no_deps)
  File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 446, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 476, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 655, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 930, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 919, in run_setup
    run_setup(setup_script, args)
  File "/usr/lib/python2.5/site-packages/setuptools/sandbox.py", line 27, in run_setup
    lambda: execfile(
  File "/usr/lib/python2.5/site-packages/setuptools/sandbox.py", line 63, in run
    return func()
  File "/usr/lib/python2.5/site-packages/setuptools/sandbox.py", line 29, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "setup.py", line 8
    except ImportError as ie:
                        ^
SyntaxError: invalid syntax

내가 뭘 잘못하고 있는지에 대한 제안?

고마워, 댄


정보 용 : 우분투 패키지 페이지 (karmic) : packages.ubuntu.com/karmic/python-setuptools .. 우분투 패키지 버그리스트 : launchpad.net/ubuntu/+source/python-setuptools/+bugs
quack quixote

답변:


0

쉬운 설치에는 문제가 없습니다. 이 오류는 python-graph에 필요한 python 2.6 대신 python 2.5를 사용함으로써 발생합니다.


1
python-setuptools 패키지에 /usr/bin/easy-install-2.6이 포함되어 있기 때문에이 기능을 사용하려면 ubuntu python2.6 패키지를 설치할 수 있다고 가정합니다. ( dpkg-reconfigure 또는 update-alternatives 가 필요할 수도 있습니다.)
quack quixote
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.