无法启动此程序,因为计算机中丢失api-ms-win-crt-runtime-|1-1-0.dll。尝试重新安装该程序以解决此问题。

放弃吧,直接上传一个win10镜像,把系统换了


 

最近在Windows Server 2008 R2 Datacenter 服务器上安装python,把python的安装包复制过去发现无法安装,提示

Setup failed

One or more issues caused the setup to fail. Please fix the issues and then retry setup. For more information see the log file.

Windows Server 2008 R2 Service Pack 1 and all applicable updates are required to install Python 3.8.5 (64-bit).

Please update your machine and then restart the installation.

由于我的电脑是64位的系统,服务器上的这个系统也是64位的,于是我把我电脑上安装的python文件夹给打包传输到服务器上,然后再服务器的相同位置解压,

把环境变量配置了一下

cmd运行python发现又有了新的提示:

无法启动此程序,因为计算机中丢失api-ms-win-crt-runtime-|1-1-0.dll。尝试重新安装该程序以解决此问题。

看到网上需要下载安装Microsoft Visual C++ Redistributable,找了个教程安装了一下,

安装Microsoft Visual C++ Redistributable教程:

https://zhuanlan.zhihu.com/p/680265004

Microsoft Visual C++ Redistributable的详情页面:

https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

Microsoft Visual C++ Redistributable的下载链接:

https://aka.ms/vs/17/release/vc_redist.x64.exe

现在cmd运行python又有了新的提示

C:\Users\Administrator>python
Error processing line 7 of C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\pywin32.pth:

  Traceback (most recent call last):
    File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site.py", line 169, in addpackage exec(line)
    File "<string>", line 1, in <module>
    File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\win32\lib\pywin32_bootstrap.py", line 23, in <module> 
    os.add_dll_directory(path) 
    cookie = nt._add_dll_directory(path)
  OSError: [WinError 127] 找不到指定的程序。: 'C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python38\\lib\\site-packages\\pywin32_system32'

Remainder of file ignored
Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AM
D64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

 

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注