哪些版本的Python可以在Windows XP中运行?(What versions of Python will work in Windows XP?)

什么版本的Python可以在Windows XP中工作? 我想要能够在Windows XP上运行的最高级的Python版本。 我需要Python 2和Python 3.预先感谢!

What versions of Python will work in Windows xp? I would like the most advanced version of Python that still works on windows xp. I need Python 2 and Python 3. Thanks in advance!


最满意答案

我发现Python 2.7.9和Python 3.4.3是在Windows XP中工作的最新版本的Python。 我通过试验和错误发现了这一点。

I found that python 2.7.9 and python 3.4.3 are the newest versions of python that work in windows xp. I found this out through trial and error.

2018-03-03

相关问答

一个简单的方法是让记事本打印文本文件: import subprocess

subprocess.call(['notepad', '/p', filename])

A simple approach is to have Notepad print the text file: import subprocess

subprocess.call(['notepad', '/p', filename])

我发现Python 2.7.9和Python 3.4.3是在Windows XP中工作的最新版本的Python。 我通过试验和错误发现了这一点。 I found that python 2.7.9 and python 3.4.3 are the newest versions of python that work in windows xp. I found this out through trial and error.

运行不同的Python副本就像启动正确的可执行文件一样简单。 您提到您已经从命令行启动了一个python实例,只需键入python 。 Windows下的这种做法是拖动%PATH%环境变量,检查可执行文件,批处理文件(.bat),命令文件(.cmd)或其他可运行的可执行文件,与给定的名称相匹配。 当它找到正确的文件运行时,它会这样做。 现在,如果你安装了两个python版本2.5和2.6,路径将会有两个目录,比如PATH=c:\python\2.5;c:\python\2.6但Windows会停止

...

你需要在python 3.x中使用类似print("hello")东西 print已转换为python 3.x中的函数。 读到这个:` 打印是一个功能 Python 3.1.2 (release31-maint, Dec 9 2011, 20:50:50)

[GCC 4.4.5] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> print 3

File "

...

我想,最好是在重试之前和之后卸载python 2.7。 I finally solved it by extracting the .msi file with this tool and moving the files manually to C:\Python33. Thanks.

好的,这是我的解决方案,让IPython 0.12.1在同一系统上使用Python ver 2.7.x和3.2.x (即在Windows 7 64位和XP SP2 32位下)。 它不完美,但有效,希望能帮助别人。 我在哪里显示目录,他们指的是XP(但应根据Windows 7进行相应调整) 两者的步骤: 通过Python.org提供的二进制窗口安装程序安装两个版本的Python 安装此版本的pyreadline pyreadline-2.0-dev1.win32.exe ,适用于两个版本的Pytho

...

最后,我发现了与此问题相关的核心问题: 不需要在源处使用print() ,更多细节在这里 - PyInstaller打包应用程序在控制台模式下工作正常,在窗口模式下崩溃 之后我在这里找到了import requests和解决方案的问题 - http://flashmaestro.blogspot.com/2015/04/pyinstaller-solution-about.html Eventually, I found the core problems related to this issu

...

我在Windows Vista / 32上使用PyInstaller汇总了基于wxPython的应用程序。 构建可执行文件后,我使用InnoSetup将其滚动到安装程序中。 我有客户在这种方式下以相同的设置可执行文件运行从32到64位模式的XP到8的所有内容。 我正在考虑构建64位版本,但到目前为止没有人要求它,它似乎没有必要。 我在Windows上尝试过py2exe,cxFreeze和PyInstaller,到目前为止,PyInstaller是我最喜欢的。 我在某些平台上遇到了py2exe的问题

...

试试http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame的pygame-1.9.2pre.win32-py2.7安装程序 Try the pygame-1.9.2pre.win32-py2.7 installer from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame

是。 答案很长:VB6运行时被正式支持为Windows Vista,Windows Server 2008(包括R2,Windows 7和Windows 8)中Windows的组成部分。 Yes. Long answer: the VB6 runtime is officially supported as an integral part of Windows in Windows Vista, Windows Server 2008 including R2, Windows 7, and W

...