我正在尝试在我的 kali linux 机器上的 wine 中安装适用于 windows 的 python 问题在于当我编写命令时
wine msiexec /i python-2.7.16.msi
我收到以下错误:
0009:err:mscoree:LoadLibraryShim error reading registry key for installroot
0009:err:mscoree:LoadLibraryShim error reading registry key for installroot
0009:err:mscoree:LoadLibraryShim error reading registry key for installroot
0009:err:ole:CoGetClassObject class {f6d90f11-9c73-11d3-b32e-00c04f990bb4} not registered
0009:err:ole:CoGetClassObject no class object {f6d90f11-9c73-11d3-b32e-00c04f990bb4} could be created for context 0x1
0009:err:msi:msi_install_assembly Failed to install assembly L"C:\\users\\root\\Temp\\msi5.tmp\\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963e.manifest" (0x80040154)
0009:err:msi:ACTION_InstallFiles Failed to install assembly
0009:err:msi:execute_script Execution of script 0 halted; action L"InstallFiles" returned 1603
0009:err:msi:ITERATE_Actions Execution halted, action L"InstallFinalize" returned 1603
0009:err:msi:ITERATE_Actions Execution halted, action L"ExecuteAction" returned 1603
0009:err:ole:CoGetClassObject class {f6d90f11-9c73-11d3-b32e-00c04f990bb4} not registered
0009:err:ole:CoGetClassObject no class object {f6d90f11-9c73-11d3-b32e-00c04f990bb4} could be created for context 0x1
0009:err:ole:CoGetClassObject class {f6d90f11-9c73-11d3-b32e-00c04f990bb4} not registered
0009:err:ole:CoGetClassObject no class object {f6d90f11-9c73-11d3-b32e-00c04f990bb4} could be created for context 0x1
0009:err:ole:CoGetClassObject class {f6d90f11-9c73-11d3-b32e-00c04f990bb4} not registered
0009:err:ole:CoGetClassObject no class object {f6d90f11-9c73-11d3-b32e-00c04f990bb4} could be created for context 0x1
0009:err:ole:CoGetClassObject class {f6d90f11-9c73-11d3-b32e-00c04f990bb4} not registered
0009:err:ole:CoGetClassObject no class object {f6d90f11-9c73-11d3-b32e-00c04f990bb4} could be created for context 0x1
我不知道该怎么做才能解决这个问题。
如何修复?
答案1
解决方案是通过安装名为 wine-python-2.7 的东西apt-get install
。
答案2
我认为这里正确的做法是使用该wine64
版本来安装 python:
wine64 msiexec /i python-2.7.10.amd64.msi
笔记:
我也尝试通过 安装 python apt-get install wine-python-2.7
。但是,这并没有解决我的问题,因为python27.dll
缺少一个必要的库:
0009:err:module:import_dll Library python27.dll (which is needed by L"C:\\Python27\\python.exe") not found
0009:err:module:LdrInitializeThunk Importing dlls for L"C:\\Python27\\python.exe" failed, status c0000135