Install py2exe for python 2.7 over pip: this package requires Python 3.3 or later

旧街凉风 提交于 2019-12-03 03:32:58

问题


>>> python -c "import sys; print sys.version"
2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)]

>>> pip --version
pip 1.5.5 from C:\Python27\lib\site-packages (python 2.7)

>>> pip install py2exe
<mumble grumble..>
RuntimeError: This package requires Python 3.3 or later

though official py2exe download page says they have exactly what I need:

So how to install py2exe over pip?


回答1:


It is missing from pypi, if you click on the 0.6.9 link it brings you to the 0.9.2.0 python 3 package, there seems to be no 0.6.9 package available to download.

Try using pip install http://sourceforge.net/projects/py2exe/files/latest/download?source=files




回答2:


There is also a wheel of py2exe available for Python 2.x: py2exe_py2 0.6.9

You can do: pip install py2exe_py2

Pypi link.




回答3:


I'm using Anacona, and I install py2.7 via its environments feature, so previous answers were not helpful to me.

--------------------------- Cannot install ---------------------------  
Python version 2.7 required, which was not found in the registry. 

The following is the command I used, it can install py2exe via command line.

pip install https://nchc.dl.sourceforge.net/project/py2exe/py2exe/0.6.9/py2exe-0.6.9.zip
...
Successfully installed py2exe-0.6.9

Cause py2exe requires Microsoft Visual C++ 9.0, so before installing, you should download and install it, by convenience, via this link

Hope this could be helpful, Thx.




回答4:


You may try using pip3. Or if pip3 is not installed or not found, try: python3 -m pip install py2exe.

Source: https://superuser.com/a/942338/315157




回答5:


you can directly download py2exe for python 2.7 from here



来源:https://stackoverflow.com/questions/23734172/install-py2exe-for-python-2-7-over-pip-this-package-requires-python-3-3-or-late

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!