python使用easy_install安装出错

歪歪铺子 发布于 2013/08/08 17:20
阅读 4K+
收藏 0

使用easy_install安装python软件包出错,python版本2.4.3

[root@ ~]# easy_install redis
Searching for redis
Reading https://pypi.python.org/simple/redis/
Best match: redis 2.7.6
Downloading https://pypi.python.org/packages/source/r/redis/redis-2.7.6.tar.gz#md5=e975ea446c40046ef6dc41c98e41a4f8
Processing redis-2.7.6.tar.gz
Writing /tmp/easy_install-JgBx-7/redis-2.7.6/setup.cfg
Running redis-2.7.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-JgBx-7/redis-2.7.6/egg-dist-tmp-aso3S2
Traceback (most recent call last):
  File "/usr/bin/easy_install", line 7, in ?
    sys.exit(
  File "/usr/lib/python2.4/site-packages/setuptools-0.9.8-py2.4.egg/setuptools/command/easy_install.py", line 1992, in main
    with_ei_usage(lambda:
  File "/usr/lib/python2.4/site-packages/setuptools-0.9.8-py2.4.egg/setuptools/command/easy_install.py", line 1979, in with_ei_usage
    return f()
  File "/usr/lib/python2.4/site-packages/setuptools-0.9.8-py2.4.egg/setuptools/command/easy_install.py", line 1996, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "/usr/lib64/python2.4/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/usr/lib64/python2.4/distutils/dist.py", line 946, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.4/site-packages/setuptools-0.9.8-py2.4.egg/setuptools/command/easy_install.py", line 380, in run
    self.easy_install(spec, not self.no_deps)
  File "/usr/lib/python2.4/site-packages/setuptools-0.9.8-py2.4.egg/setuptools/command/easy_install.py", line 623, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/lib/python2.4/site-packages/setuptools-0.9.8-py2.4.egg/setuptools/command/easy_install.py", line 653, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/lib/python2.4/site-packages/setuptools-0.9.8-py2.4.egg/setuptools/command/easy_install.py", line 849, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/lib/python2.4/site-packages/setuptools-0.9.8-py2.4.egg/setuptools/command/easy_install.py", line 1130, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/lib/python2.4/site-packages/setuptools-0.9.8-py2.4.egg/setuptools/command/easy_install.py", line 1115, in run_setup
    run_setup(setup_script, args)
  File "/usr/lib/python2.4/site-packages/setuptools-0.9.8-py2.4.egg/setuptools/sandbox.py", line 68, in run_setup
    DirectorySandbox(setup_dir).run(
  File "/usr/lib/python2.4/site-packages/setuptools-0.9.8-py2.4.egg/setuptools/sandbox.py", line 120, in run
    return func()
  File "/usr/lib/python2.4/site-packages/setuptools-0.9.8-py2.4.egg/setuptools/sandbox.py", line 71, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "setup.py", line 5, in ?
  File "/usr/lib64/python2.4/site-packages/PIL/__init__.py", line 1, in ?
    #
  File "/tmp/easy_install-JgBx-7/redis-2.7.6/redis/client.py", line 170
    response = [nativestr(i) if i is not None else None for i in response]
                              ^
SyntaxError: invalid syntax


加载中
0
MeiKai
MeiKai
Python版本太低了
返回顶部
顶部