无法在 Windows 8 上安装 Python

无法在 Windows 8 上安装 Python

最近,我决定在我的 Windows 8 笔记本电脑上将 Python 2.7 升级到 Python 3.4。因此,我卸载了 Py2.7,从 Python 的站点下载了 .msi 文件并运行它。我发现,我尝试的每个 3.4.1 和 3.4.0 安装程序都会给我一个错误,提示安装程序的一部分不起作用。确切的错误消息是“此 Windows 安装程序包存在问题。作为安装的一部分运行的程序未按预期完成。请联系您的支持人员或软件包供应商。”我以前从未遇到过这种问题,当然在使用 Python 时也没有遇到过。有人知道尝试调试此问题的好方法吗?它在如此多的安装程序中都存在,我确信它一定是我的系统上的问题。

编辑:感谢您提供有关日志文件的提示。它非常大(比我被允许在此网站上发布的大约 320k 个字符)。这是在显示“致命错误”之后的部分。这是在 3.4.1 64 位安装程序上运行建议的代码的结果。

Property(S): X = C:\Python34\Tools\pynche\X\
Property(S): UpgradeCode = {65E6DE48-A358-434D-AA4F-4AF72DB4718F}
Property(S): ProductName = Python 3.4.1
Property(S): ProductCode = {DF32BB9E-3ED8-36B5-A649-E8C845C5F3A2}
Property(S): ProductVersion = 3.4.1150
Property(S): Manufacturer = Python Software Foundation
Property(S): ProductLanguage = 1033
Property(S): VersionNT = 602
Property(S): WhichUsers = ALL
Property(S): ProductLine = Python34
Property(S): TARGETDIR = C:\Python34\
Property(S): Tools = C:\Python34\Tools\
Property(S): DefaultUIFont = DlgFont8
Property(S): ErrorDialog = ErrorDlg
Property(S): Progress1 = Install
Property(S): Progress2 = installs
Property(S): MaintenanceForm_Action = Repair
Property(S): DLLDIR = C:\Windows\SysWOW64\
Property(S): LAUNCHERDIR = C:\Windows\
Property(S): SourceDir = C:\Users\Jesse\Downloads\
Property(S): DLLs = C:\Python34\DLLs\
Property(S): Lib = C:\Python34\Lib\
Property(S): Lib_pycache = C:\Python34\Lib\__pycache__\
Property(S): asyncio = C:\Python34\Lib\asyncio\
Property(S): asyncio_pycache = C:\Python34\Lib\asyncio\__pycache__\
Property(S): site_packages = C:\Python34\Lib\site-packages\
Property(S): idlelib = C:\Python34\Lib\idlelib\
Property(S): idlelib_pycache = C:\Python34\Lib\idlelib\__pycache__\
Property(S): idle_test = C:\Python34\Lib\idlelib\idle_test\
Property(S): idle_test_pycache = C:\Python34\Lib\idlelib\idle_test\__pycache__\
Property(S): Icons = C:\Python34\Lib\idlelib\Icons\
Property(S): concurrent = C:\Python34\Lib\concurrent\
Property(S): concurrent_pycache = C:\Python34\Lib\concurrent\__pycache__\
Property(S): futures = C:\Python34\Lib\concurrent\futures\
Property(S): futures_pycache = C:\Python34\Lib\concurrent\futures\__pycache__\
Property(S): http = C:\Python34\Lib\http\
Property(S): http_pycache = C:\Python34\Lib\http\__pycache__\
Property(S): sqlite3 = C:\Python34\Lib\sqlite3\
Property(S): sqlite3_pycache = C:\Python34\Lib\sqlite3\__pycache__\
Property(S): test = C:\Python34\Lib\sqlite3\test\
Property(S): test_pycache = C:\Python34\Lib\sqlite3\test\__pycache__\
Property(S): html = C:\Python34\Lib\html\
Property(S): html_pycache = C:\Python34\Lib\html\__pycache__\
Property(S): lib2to3 = C:\Python34\Lib\lib2to3\
Property(S): lib2to3_pycache = C:\Python34\Lib\lib2to3\__pycache__\
Property(S): pgen2 = C:\Python34\Lib\lib2to3\pgen2\
Property(S): pgen2_pycache = C:\Python34\Lib\lib2to3\pgen2\__pycache__\
Property(S): tests = C:\Python34\Lib\lib2to3\tests\
Property(S): tests_pycache = C:\Python34\Lib\lib2to3\tests\__pycache__\
Property(S): data = C:\Python34\Lib\lib2to3\tests\data\
Property(S): data_pycache = C:\Python34\Lib\lib2to3\tests\data\__pycache__\
Property(S): fixers = C:\Python34\Lib\lib2to3\tests\data\fixers\
Property(S): fixers_pycache = C:\Python34\Lib\lib2to3\tests\data\fixers\__pycache__\
Property(S): myfixes = C:\Python34\Lib\lib2to3\tests\data\fixers\myfixes\
Property(S): myfixes_pycache = C:\Python34\Lib\lib2to3\tests\data\fixers\myfixes\__pycache__\
Property(S): fixes = C:\Python34\Lib\lib2to3\fixes\
Property(S): fixes_pycache = C:\Python34\Lib\lib2to3\fixes\__pycache__\
Property(S): tkinter = C:\Python34\Lib\tkinter\
Property(S): tkinter_pycache = C:\Python34\Lib\tkinter\__pycache__\
Property(S): test1 = C:\Python34\Lib\tkinter\test\
Property(S): test1_pycache = C:\Python34\Lib\tkinter\test\__pycache__\
Property(S): test_tkinter = C:\Python34\Lib\tkinter\test\test_tkinter\
Property(S): test_tkinter_pycache = C:\Python34\Lib\tkinter\test\test_tkinter\__pycache__\
Property(S): test_ttk = C:\Python34\Lib\tkinter\test\test_ttk\
Property(S): test_ttk_pycache = C:\Python34\Lib\tkinter\test\test_ttk\__pycache__\
Property(S): wsgiref = C:\Python34\Lib\wsgiref\
Property(S): wsgiref_pycache = C:\Python34\Lib\wsgiref\__pycache__\
Property(S): venv = C:\Python34\Lib\venv\
Property(S): venv_pycache = C:\Python34\Lib\venv\__pycache__\
Property(S): scripts = C:\Python34\Lib\venv\scripts\
Property(S): nt = C:\Python34\Lib\venv\scripts\nt\
Property(S): posix = C:\Python34\Lib\venv\scripts\posix\
Property(S): json = C:\Python34\Lib\json\
Property(S): json_pycache = C:\Python34\Lib\json\__pycache__\
Property(S): curses = C:\Python34\Lib\curses\
Property(S): curses_pycache = C:\Python34\Lib\curses\__pycache__\
Property(S): multiprocessing = C:\Python34\Lib\multiprocessing\
Property(S): multiprocessing_pycache = C:\Python34\Lib\multiprocessing\__pycache__\
Property(S): dummy = C:\Python34\Lib\multiprocessing\dummy\
Property(S): dummy_pycache = C:\Python34\Lib\multiprocessing\dummy\__pycache__\
Property(S): ensurepip = C:\Python34\Lib\ensurepip\
Property(S): ensurepip_pycache = C:\Python34\Lib\ensurepip\__pycache__\
Property(S): _bundled = C:\Python34\Lib\ensurepip\_bundled\
Property(S): logging = C:\Python34\Lib\logging\
Property(S): logging_pycache = C:\Python34\Lib\logging\__pycache__\
Property(S): ctypes = C:\Python34\Lib\ctypes\
Property(S): ctypes_pycache = C:\Python34\Lib\ctypes\__pycache__\
Property(S): test2 = C:\Python34\Lib\ctypes\test\
Property(S): test2_pycache = C:\Python34\Lib\ctypes\test\__pycache__\
Property(S): macholib = C:\Python34\Lib\ctypes\macholib\
Property(S): macholib_pycache = C:\Python34\Lib\ctypes\macholib\__pycache__\
Property(S): test3 = C:\Python34\Lib\test\
Property(S): test3_pycache = C:\Python34\Lib\test\__pycache__\
Property(S): test_asyncio = C:\Python34\Lib\test\test_asyncio\
Property(S): test_asyncio_pycache = C:\Python34\Lib\test\test_asyncio\__pycache__\
Property(S): support = C:\Python34\Lib\test\support\
Property(S): support_pycache = C:\Python34\Lib\test\support\__pycache__\
Property(S): capath = C:\Python34\Lib\test\capath\
Property(S): encoded_modules = C:\Python34\Lib\test\encoded_modules\
Property(S): encoded_modules_pycache = C:\Python34\Lib\test\encoded_modules\__pycache__\
Property(S): imghdrdata = C:\Python34\Lib\test\imghdrdata\
Property(S): decimaltestdata = C:\Python34\Lib\test\decimaltestdata\
Property(S): sndhdrdata = C:\Python34\Lib\test\sndhdrdata\
Property(S): tracedmodules = C:\Python34\Lib\test\tracedmodules\
Property(S): tracedmodules_pycache = C:\Python34\Lib\test\tracedmodules\__pycache__\
Property(S): crashers = C:\Python34\Lib\test\crashers\
Property(S): crashers_pycache = C:\Python34\Lib\test\crashers\__pycache__\
Property(S): cjkencodings = C:\Python34\Lib\test\cjkencodings\
Property(S): leakers = C:\Python34\Lib\test\leakers\
Property(S): leakers_pycache = C:\Python34\Lib\test\leakers\__pycache__\
Property(S): subprocessdata = C:\Python34\Lib\test\subprocessdata\
Property(S): subprocessdata_pycache = C:\Python34\Lib\test\subprocessdata\__pycache__\
Property(S): test_json = C:\Python34\Lib\test\test_json\
Property(S): test_json_pycache = C:\Python34\Lib\test\test_json\__pycache__\
Property(S): xmltestdata = C:\Python34\Lib\test\xmltestdata\
Property(S): data1 = C:\Python34\Lib\test\data\
Property(S): audiodata = C:\Python34\Lib\test\audiodata\
Property(S): test_importlib = C:\Python34\Lib\test\test_importlib\
Property(S): test_importlib_pycache = C:\Python34\Lib\test\test_importlib\__pycache__\
Property(S): builtin = C:\Python34\Lib\test\test_importlib\builtin\
Property(S): builtin_pycache = C:\Python34\Lib\test\test_importlib\builtin\__pycache__\
Property(S): namespace_pkgs = C:\Python34\Lib\test\test_importlib\namespace_pkgs\
Property(S): module_and_namespace_package = C:\Python34\Lib\test\test_importlib\namespace_pkgs\module_and_namespace_package\
Property(S): module_and_namespace_package_pycache = C:\Python34\Lib\test\test_importlib\namespace_pkgs\module_and_namespace_package\__pycache__\
Property(S): a_test = C:\Python34\Lib\test\test_importlib\namespace_pkgs\module_and_namespace_package\a_test\
Property(S): project3 = C:\Python34\Lib\test\test_importlib\namespace_pkgs\project3\
Property(S): parent = C:\Python34\Lib\test\test_importlib\namespace_pkgs\project3\parent\
Property(S): child = C:\Python34\Lib\test\test_importlib\namespace_pkgs\project3\parent\child\
Property(S): child_pycache = C:\Python34\Lib\test\test_importlib\namespace_pkgs\project3\parent\child\__pycache__\
Property(S): project1 = C:\Python34\Lib\test\test_importlib\namespace_pkgs\project1\
Property(S): parent1 = C:\Python34\Lib\test\test_importlib\namespace_pkgs\project1\parent\
Property(S): child1 = C:\Python34\Lib\test\test_importlib\namespace_pkgs\project1\parent\child\
Property(S): child1_pycache = C:\Python34\Lib\test\test_importlib\namespace_pkgs\project1\parent\child\__pycache__\
Property(S): project2 = C:\Python34\Lib\test\test_importlib\namespace_pkgs\project2\
Property(S): parent2 = C:\Python34\Lib\test\test_importlib\namespace_pkgs\project2\parent\
Property(S): child2 = C:\Python34\Lib\test\test_importlib\namespace_pkgs\project2\parent\child\
Property(S): child2_pycache = C:\Python34\Lib\test\test_importlib\namespace_pkgs\project2\parent\child\__pycache__\
Property(S): both_portions = C:\Python34\Lib\test\test_importlib\namespace_pkgs\both_portions\
Property(S): foo = C:\Python34\Lib\test\test_importlib\namespace_pkgs\both_portions\foo\
Property(S): foo_pycache = C:\Python34\Lib\test\test_importlib\namespace_pkgs\both_portions\foo\__pycache__\
Property(S): not_a_namespace_pkg = C:\Python34\Lib\test\test_importlib\namespace_pkgs\not_a_namespace_pkg\
Property(S): foo1 = C:\Python34\Lib\test\test_importlib\namespace_pkgs\not_a_namespace_pkg\foo\
Property(S): foo1_pycache = C:\Python34\Lib\test\test_importlib\namespace_pkgs\not_a_namespace_pkg\foo\__pycache__\
Property(S): portion1 = C:\Python34\Lib\test\test_importlib\namespace_pkgs\portion1\
Property(S): foo2 = C:\Python34\Lib\test\test_importlib\namespace_pkgs\portion1\foo\
Property(S): foo2_pycache = C:\Python34\Lib\test\test_importlib\namespace_pkgs\portion1\foo\__pycache__\
Property(S): portion2 = C:\Python34\Lib\test\test_importlib\namespace_pkgs\portion2\
Property(S): foo3 = C:\Python34\Lib\test\test_importlib\namespace_pkgs\portion2\foo\
Property(S): foo3_pycache = C:\Python34\Lib\test\test_importlib\namespace_pkgs\portion2\foo\__pycache__\
Property(S): frozen = C:\Python34\Lib\test\test_importlib\frozen\
Property(S): frozen_pycache = C:\Python34\Lib\test\test_importlib\frozen\__pycache__\
Property(S): source = C:\Python34\Lib\test\test_importlib\source\
Property(S): source_pycache = C:\Python34\Lib\test\test_importlib\source\__pycache__\
Property(S): extension = C:\Python34\Lib\test\test_importlib\extension\
Property(S): extension_pycache = C:\Python34\Lib\test\test_importlib\extension\__pycache__\
Property(S): import_ = C:\Python34\Lib\test\test_importlib\import_\
Property(S): import__pycache = C:\Python34\Lib\test\test_importlib\import_\__pycache__\
Property(S): test_email = C:\Python34\Lib\test\test_email\
Property(S): test_email_pycache = C:\Python34\Lib\test\test_email\__pycache__\
Property(S): data2 = C:\Python34\Lib\test\test_email\data\
Property(S): turtledemo = C:\Python34\Lib\turtledemo\
Property(S): turtledemo_pycache = C:\Python34\Lib\turtledemo\__pycache__\
Property(S): xml = C:\Python34\Lib\xml\
Property(S): xml_pycache = C:\Python34\Lib\xml\__pycache__\
Property(S): dom = C:\Python34\Lib\xml\dom\
Property(S): dom_pycache = C:\Python34\Lib\xml\dom\__pycache__\
Property(S): etree = C:\Python34\Lib\xml\etree\
Property(S): etree_pycache = C:\Python34\Lib\xml\etree\__pycache__\
Property(S): parsers = C:\Python34\Lib\xml\parsers\
Property(S): parsers_pycache = C:\Python34\Lib\xml\parsers\__pycache__\
Property(S): sax = C:\Python34\Lib\xml\sax\
Property(S): sax_pycache = C:\Python34\Lib\xml\sax\__pycache__\
Property(S): email = C:\Python34\Lib\email\
Property(S): email_pycache = C:\Python34\Lib\email\__pycache__\
Property(S): mime = C:\Python34\Lib\email\mime\
Property(S): mime_pycache = C:\Python34\Lib\email\mime\__pycache__\
Property(S): urllib = C:\Python34\Lib\urllib\
Property(S): urllib_pycache = C:\Python34\Lib\urllib\__pycache__\
Property(S): encodings = C:\Python34\Lib\encodings\
Property(S): encodings_pycache = C:\Python34\Lib\encodings\__pycache__\
Property(S): pydoc_data = C:\Python34\Lib\pydoc_data\
Property(S): pydoc_data_pycache = C:\Python34\Lib\pydoc_data\__pycache__\
Property(S): msilib = C:\Python34\Lib\msilib\
Property(S): msilib_pycache = C:\Python34\Lib\msilib\__pycache__\
Property(S): xmlrpc = C:\Python34\Lib\xmlrpc\
Property(S): xmlrpc_pycache = C:\Python34\Lib\xmlrpc\__pycache__\
Property(S): unittest = C:\Python34\Lib\unittest\
Property(S): unittest_pycache = C:\Python34\Lib\unittest\__pycache__\
Property(S): test4 = C:\Python34\Lib\unittest\test\
Property(S): test4_pycache = C:\Python34\Lib\unittest\test\__pycache__\
Property(S): testmock = C:\Python34\Lib\unittest\test\testmock\
Property(S): testmock_pycache = C:\Python34\Lib\unittest\test\testmock\__pycache__\
Property(S): collections = C:\Python34\Lib\collections\
Property(S): collections_pycache = C:\Python34\Lib\collections\__pycache__\
Property(S): importlib = C:\Python34\Lib\importlib\
Property(S): importlib_pycache = C:\Python34\Lib\importlib\__pycache__\
Property(S): distutils = C:\Python34\Lib\distutils\
Property(S): distutils_pycache = C:\Python34\Lib\distutils\__pycache__\
Property(S): command = C:\Python34\Lib\distutils\command\
Property(S): command_pycache = C:\Python34\Lib\distutils\command\__pycache__\
Property(S): tests1 = C:\Python34\Lib\distutils\tests\
Property(S): tests1_pycache = C:\Python34\Lib\distutils\tests\__pycache__\
Property(S): dbm = C:\Python34\Lib\dbm\
Property(S): dbm_pycache = C:\Python34\Lib\dbm\__pycache__\
Property(S): include = C:\Python34\include\
Property(S): libs = C:\Python34\libs\
Property(S): tcl = C:\Python34\tcl\
Property(S): tk8.6 = C:\Python34\tcl\tk8.6\
Property(S): ttk = C:\Python34\tcl\tk8.6\ttk\
Property(S): msgs = C:\Python34\tcl\tk8.6\msgs\
Property(S): images = C:\Python34\tcl\tk8.6\images\
Property(S): demos = C:\Python34\tcl\tk8.6\demos\
Property(S): images1 = C:\Python34\tcl\tk8.6\demos\images\
Property(S): tix8.4.3 = C:\Python34\tcl\tix8.4.3\
Property(S): pref = C:\Python34\tcl\tix8.4.3\pref\
Property(S): demos1 = C:\Python34\tcl\tix8.4.3\demos\
Property(S): samples = C:\Python34\tcl\tix8.4.3\demos\samples\
Property(S): bitmaps = C:\Python34\tcl\tix8.4.3\demos\bitmaps\
Property(S): bitmaps1 = C:\Python34\tcl\tix8.4.3\bitmaps\
Property(S): thread2.7.0 = C:\Python34\tcl\thread2.7.0\
Property(S): tdbcsqlite1.0.0 = C:\Python34\tcl\tdbcsqlite1.0.0\
Property(S): tdbcpostgres1.0.0 = C:\Python34\tcl\tdbcpostgres1.0.0\
Property(S): tdbcodbc1.0.0 = C:\Python34\tcl\tdbcodbc1.0.0\
Property(S): tdbcmysql1.0.0 = C:\Python34\tcl\tdbcmysql1.0.0\
Property(S): tdbc1.0.0 = C:\Python34\tcl\tdbc1.0.0\
Property(S): tcl8.6 = C:\Python34\tcl\tcl8.6\
Property(S): tzdata = C:\Python34\tcl\tcl8.6\tzdata\
Property(S): US = C:\Python34\tcl\tcl8.6\tzdata\US\
Property(S): Pacific = C:\Python34\tcl\tcl8.6\tzdata\Pacific\
Property(S): SystemV = C:\Python34\tcl\tcl8.6\tzdata\SystemV\
Property(S): Mexico = C:\Python34\tcl\tcl8.6\tzdata\Mexico\
Property(S): Indian = C:\Python34\tcl\tcl8.6\tzdata\Indian\
Property(S): Europe = C:\Python34\tcl\tcl8.6\tzdata\Europe\
Property(S): Etc = C:\Python34\tcl\tcl8.6\tzdata\Etc\
Property(S): Chile = C:\Python34\tcl\tcl8.6\tzdata\Chile\
Property(S): Canada = C:\Python34\tcl\tcl8.6\tzdata\Canada\
Property(S): Atlantic = C:\Python34\tcl\tcl8.6\tzdata\Atlantic\
Property(S): Brazil = C:\Python34\tcl\tcl8.6\tzdata\Brazil\
Property(S): Australia = C:\Python34\tcl\tcl8.6\tzdata\Australia\
Property(S): Asia = C:\Python34\tcl\tcl8.6\tzdata\Asia\
Property(S): Arctic = C:\Python34\tcl\tcl8.6\tzdata\Arctic\
Property(S): Antarctica = C:\Python34\tcl\tcl8.6\tzdata\Antarctica\
Property(S): America = C:\Python34\tcl\tcl8.6\tzdata\America\
Property(S): North_Dakota = C:\Python34\tcl\tcl8.6\tzdata\America\North_Dakota\
Property(S): Kentucky = C:\Python34\tcl\tcl8.6\tzdata\America\Kentucky\
Property(S): Indiana = C:\Python34\tcl\tcl8.6\tzdata\America\Indiana\
Property(S): Argentina = C:\Python34\tcl\tcl8.6\tzdata\America\Argentina\
Property(S): Africa = C:\Python34\tcl\tcl8.6\tzdata\Africa\
Property(S): opt0.4 = C:\Python34\tcl\tcl8.6\opt0.4\
Property(S): msgs1 = C:\Python34\tcl\tcl8.6\msgs\
Property(S): http1.0 = C:\Python34\tcl\tcl8.6\http1.0\
Property(S): encoding = C:\Python34\tcl\tcl8.6\encoding\
Property(S): tcl8 = C:\Python34\tcl\tcl8\
Property(S): _8.6 = C:\Python34\tcl\tcl8\8.6\
Property(S): tdbc = C:\Python34\tcl\tcl8\8.6\tdbc\
Property(S): _8.5 = C:\Python34\tcl\tcl8\8.5\
Property(S): _8.4 = C:\Python34\tcl\tcl8\8.4\
Property(S): platform = C:\Python34\tcl\tcl8\8.4\platform\
Property(S): _8.3 = C:\Python34\tcl\tcl8\8.3\
Property(S): _8.2 = C:\Python34\tcl\tcl8\8.2\
Property(S): sqlite33.8.0 = C:\Python34\tcl\sqlite33.8.0\
Property(S): reg1.3 = C:\Python34\tcl\reg1.3\
Property(S): itcl4.0.0 = C:\Python34\tcl\itcl4.0.0\
Property(S): dde1.4 = C:\Python34\tcl\dde1.4\
Property(S): i18n = C:\Python34\Tools\i18n\
Property(S): i18n_pycache = C:\Python34\Tools\i18n\__pycache__\
Property(S): pynche = C:\Python34\Tools\pynche\
Property(S): pynche_pycache = C:\Python34\Tools\pynche\__pycache__\
Property(S): Scripts = C:\Python34\Tools\Scripts\
Property(S): Scripts_pycache = C:\Python34\Tools\Scripts\__pycache__\
Property(S): Doc = C:\Python34\Doc\
Property(S): ProgramMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\
Property(S): MenuDir = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Python 3.4\
Property(S): SecureCustomProperties = REMOVEOLDSNAPSHOT;REMOVEOLDVERSION;TARGETDIR;DLLDIR;LAUNCHERDIR
Property(S): WindowsFolder_x86_VC.AFA96EB4_FA9F_335C_A7CB_36079407553D = C:\Windows\
Property(S): SystemFolder_x86_VC.AFA96EB4_FA9F_335C_A7CB_36079407553D = C:\Windows\SysWOW64\
Property(S): DirectoryTable100_x86.AFA96EB4_FA9F_335C_A7CB_36079407553D = DirectoryTable
Property(S): MsiLogFileLocation = C:\Users\Jesse\Downloads\log.txt
Property(S): PackageCode = {32A3290B-8A39-4C7C-83A9-90DFDF2A7FAD}
Property(S): ProductState = -1
Property(S): ALLUSERS = 1
Property(S): PackagecodeChanging = 1
Property(S): RestrictedUserControl = 1
Property(S): CURRENTDIRECTORY = C:\Users\Jesse\Downloads
Property(S): CLIENTUILEVEL = 0
Property(S): CLIENTPROCESSID = 5572
Property(S): ACTION = INSTALL
Property(S): EXECUTEACTION = INSTALL
Property(S): INSTALLLEVEL = 1
Property(S): SECONDSEQUENCE = 1
Property(S): ADDLOCAL = DefaultFeature,SharedCRT,Extensions,TclTk,Documentation,Tools,pip_feature,Testsuite,PrependPath
Property(S): VersionDatabase = 200
Property(S): VersionMsi = 5.00
Property(S): VersionNT64 = 602
Property(S): WindowsBuild = 9200
Property(S): ServicePackLevel = 0
Property(S): ServicePackLevelMinor = 0
Property(S): MsiNTProductType = 1
Property(S): MsiNTSuitePersonal = 1
Property(S): WindowsFolder = C:\Windows\
Property(S): WindowsVolume = C:\
Property(S): System64Folder = C:\Windows\system32\
Property(S): SystemFolder = C:\Windows\SysWOW64\
Property(S): RemoteAdminTS = 1
Property(S): TempFolder = C:\Users\Jesse\AppData\Local\Temp\
Property(S): ProgramFilesFolder = C:\Program Files (x86)\
Property(S): CommonFilesFolder = C:\Program Files (x86)\Common Files\
Property(S): ProgramFiles64Folder = C:\Program Files\
Property(S): CommonFiles64Folder = C:\Program Files\Common Files\
Property(S): AppDataFolder = C:\Users\Jesse\AppData\Roaming\
Property(S): FavoritesFolder = C:\Users\Jesse\Favorites\
Property(S): NetHoodFolder = C:\Users\Jesse\AppData\Roaming\Microsoft\Windows\Network Shortcuts\
Property(S): PersonalFolder = C:\Users\Jesse\Documents\
Property(S): PrintHoodFolder = C:\Users\Jesse\AppData\Roaming\Microsoft\Windows\Printer Shortcuts\
Property(S): RecentFolder = C:\Users\Jesse\AppData\Roaming\Microsoft\Windows\Recent\
Property(S): SendToFolder = C:\Users\Jesse\AppData\Roaming\Microsoft\Windows\SendTo\
Property(S): TemplateFolder = C:\ProgramData\Microsoft\Windows\Templates\
Property(S): CommonAppDataFolder = C:\ProgramData\
Property(S): LocalAppDataFolder = C:\Users\Jesse\AppData\Local\
Property(S): MyPicturesFolder = C:\Users\Jesse\Pictures\
Property(S): AdminToolsFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\
Property(S): StartupFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\
Property(S): StartMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\
Property(S): DesktopFolder = C:\Users\Public\Desktop\
Property(S): FontsFolder = C:\Windows\Fonts\
Property(S): GPTSupport = 1
Property(S): OLEAdvtSupport = 1
Property(S): ShellAdvtSupport = 1
Property(S): MsiAMD64 = 6
Property(S): Msix64 = 6
Property(S): Intel = 6
Property(S): PhysicalMemory = 4043
Property(S): VirtualMemory = 5839
Property(S): LogonUser = Jesse
Property(S): UserSID = S-1-5-21-1182483876-2045043420-405903354-1001
Property(S): UserLanguageID = 1033
Property(S): ComputerName = MINICHROME
Property(S): SystemLanguageID = 1033
Property(S): ScreenX = 1024
Property(S): ScreenY = 768
Property(S): CaptionHeight = 23
Property(S): BorderTop = 1
Property(S): BorderSide = 1
Property(S): TextHeight = 16
Property(S): TextInternalLeading = 3
Property(S): ColorBits = 32
Property(S): TTCSupport = 1
Property(S): Time = 12:14:36
Property(S): Date = 6/19/2014
Property(S): MsiNetAssemblySupport = 4.0.30319.17929
Property(S): MsiWin32AssemblySupport = 6.2.9200.16384
Property(S): RedirectedDllSupport = 2
Property(S): MsiRunningElevated = 1
Property(S): Privileged = 1
Property(S): USERNAME = Jesse
Property(S): DATABASE = C:\Windows\Installer\522b8.msi
Property(S): OriginalDatabase = C:\Users\Jesse\Downloads\python-3.4.1.msi
Property(S): UILevel = 5
Property(S): Preselected = 1
Property(S): ROOTDRIVE = C:\
Property(S): CostingComplete = 1
Property(S): OutOfDiskSpace = 0
Property(S): OutOfNoRbDiskSpace = 0
Property(S): PrimaryVolumeSpaceAvailable = 0
Property(S): PrimaryVolumeSpaceRequired = 0
Property(S): PrimaryVolumeSpaceRemaining = 0
Property(S): SOURCEDIR = C:\Users\Jesse\Downloads\
Property(S): SourcedirProduct = {DF32BB9E-3ED8-36B5-A649-E8C845C5F3A2}
Property(S): ProductToBeRegistered = 1
MSI (s) (60:80) [12:14:36:539]: MainEngineThread is returning 1603
MSI (s) (60:64) [12:14:36:539]: RESTART MANAGER: Session closed.
MSI (s) (60:64) [12:14:36:539]: No System Restore sequence number for this installation.
MSI (s) (60:64) [12:14:36:554]: User policy value 'DisableRollback' is 0
MSI (s) (60:64) [12:14:36:554]: Machine policy value 'DisableRollback' is 0
MSI (s) (60:64) [12:14:36:554]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (60:64) [12:14:36:554]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (60:64) [12:14:36:554]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (60:64) [12:14:36:554]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (s) (60:64) [12:14:36:554]: Destroying RemoteAPI object.
MSI (s) (60:F0) [12:14:36:554]: Custom Action Manager thread ending.
MSI (c) (C4:E8) [12:14:36:554]: Back from server. Return value: 1603
MSI (c) (C4:E8) [12:14:36:554]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c) (C4:E8) [12:14:36:554]: PROPERTY CHANGE: Deleting SECONDSEQUENCE property. Its current value is '1'.
Action ended 12:14:36: ExecuteAction. Return value 3.
MSI (c) (C4:E8) [12:14:36:554]: Doing action: FatalError
Action 12:14:36: FatalError. 
Action start 12:14:36: FatalError.
Action 12:14:36: FatalError. Dialog created
Action ended 12:14:37: FatalError. Return value 2.

答案1

由于该问题是由于 pip 附带 python 3.4 安装程序而引起的,因此您可以简单地取消选中安装程序中的 pip 安装选项,然后稍后尝试手动安装 pip。

答案2

我遇到了相同或至少类似的错误,但我找不到解决方案。我刚刚卸载了 Python 3.4.1,并尝试安装 Python 3.4.2。

我在我的环境中发现了三个不同的问题,但问题 #3 才是真正解决了我的问题。前两个问题对我的情况没有太大影响,我只是将它们作为其他人的附加选项/想法(特别是在安装第二个 Python 版本等时)。

  1. 剩余的环境变量。 我有 3.4.1 安装集的环境变量。安装多个版本时,这可能会导致安装过程中出错。您可能需要删除这些环境变量。

    在此处输入图片描述

  2. 系统路径。 Python 仍在系统 PATH 中。同样,安装多个版本时,这可能会导致安装过程中出错。您可能需要从 PATH 中删除这些条目。

    在此处输入图片描述

  3. 实际问题:open/command注册表中的自定义。 我在这里有这个注册表项(加上添加.PYPATHEXTenvar),所以我可以仅使用 来运行 Python 程序app.py,而不必输入PYTHON app.py

    在此处输入图片描述

问题在于,新版本的 Python 只进行了部分安装,然后它在安装过程中尝试运行一些 Python 命令。由于我的自定义注册,它尝试使用旧的 python.exe 路径运行 Python 代码,而 python.exe 当然已被卸载。所以,每次都会失败。

因此,删除自定义的 open/command 可使安装成功。安装完成后,我将其重新添加。

需要注意几件事。如果我没有更改安装位置,就不会遇到这个问题。而且,我本可以更新 open/command 条目以指向新位置,而不是将其删除并随后重新添加。

答案3

好极了,经过多次调查,我终于找到了解决方案,转到系统路径并删除指向 python27 或任何其他版本的任何路径地址,然后运行 ​​msi 安装程序。

答案4

对我来说,这个问题归结为 Python 安装程序在我的系统上找到了错误版本的 hashlib,从而破坏了安装中的“ensurepip”步骤,不幸的是,该步骤未能报告有用的错误。生成 msiexec 日志帮助我追踪了该错误。

看来安装程序应该更加小心地使用其自己的 hashlib。

这个错误是相关的,并且这一页帮助我弄清楚它是一个无关的 hashlib(尽管我的问题出现在 Windows 上)。

相关内容