issues with py2exe?

2

Então, tentei instalar o py2exe , no entanto, eu fui esbofeteado na cara com um bloqueio na estrada. mesmo depois de instalar idle-python3 e python3-minimal , postarei as informações de registro junto com essa mensagem de erro para os problemas de py2exe install.

comando eu corro é

sudo easy_install py2exe

Searching for py2exe
Reading https://pypi.python.org/simple/py2exe/
Reading http://sourceforge.net/project/showfiles.php?group_id=15583
Reading http://starship.python.net/crew/theller/py2exe/
Reading http://www.py2exe.org/
Best match: py2exe 0.9.2.0
Downloading https://pypi.python.org/packages/source/p/py2exe/py2exe-0.9.2.0.zip#md5=56357f14838f616d4265e004036bb89a
Processing py2exe-0.9.2.0.zip
Writing /tmp/easy_install-vtEkUt/py2exe-0.9.2.0/setup.cfg
Running py2exe-0.9.2.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-vtEkUt/py2exe-0.9.2.0/egg-dist-tmp-Tl19Zb
Traceback (most recent call last):
  File "/usr/bin/easy_install", line 9, in <module>
    load_entry_point('setuptools==3.3', 'console_scripts', 'easy_install')()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1963, in main
    with_ei_usage(lambda:
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1950, in with_ei_usage
    return f()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1967, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 381, in run
    self.easy_install(spec, not self.no_deps)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 616, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 646, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 834, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1040, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1025, in run_setup
    run_setup(setup_script, args)
  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 50, in run_setup
    lambda: execfile(
  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 100, in run
    return func()
  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 52, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "setup.py", line 10, in <module>
RuntimeError: This package requires Python 3.3 or later

Aqui está a informação quando eu corro sudo apt-get install python3-minimal

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-minimal is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

e quando eu corro sudo apt-get install idle-python3.4

Reading package lists... Done
Building dependency tree       
Reading state information... Done
idle-python3.4 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded

Qualquer sugestão sobre um trabalho ou uma maneira de corrigir esse problema seria muito apreciada.

    
por Sylvain Pineau 15.09.2014 / 19:29

1 resposta

1

Prefira pip over easy_install :

sudo apt-get install python3-pip

Em seguida, instale o py2exe com o seguinte comando no 14.04:

$ sudo pip3 install py2exe
[sudo] password for sylvain: 
Downloading/unpacking py2exe
  Downloading py2exe-0.9.2.0-py33.py34-none-any.whl (253kB): 253kB downloaded
Installing collected packages: py2exe
Successfully installed py2exe
Cleaning up...
    
por Sylvain Pineau 15.09.2014 / 20:59

Tags