adang1345 / PythonWin7

Python 3.9+ installers that support Windows 7 SP1 and Windows Server 2008 R2 SP1
MIT License
580 stars 70 forks source link

Windows 7 x86 - "api-ms-win-crt-runtime-l1-1-0.dll" is missing error #5

Closed NuruDashdamir closed 1 year ago

NuruDashdamir commented 1 year ago

Opening "python.exe" from any of "python-3.x.x-embed-win32.zip" results with this error.

I have checked it with different Windows 7 (x86) installations on couple of netbooks which has Intel Atom (old x86 variant) processors. Also I tested different modded Windows 7 32 bit editions on VirtualBox and results were the same.

image

adang1345 commented 1 year ago

Hi, this is not a bug in this repository - it is related to the Python embeddable package in general. The documentation here says that in order to use the embeddable package, you need the Microsoft C runtime installed. It appears that you don't have that installed.

NuruDashdamir commented 1 year ago

Hi, this is not a bug in this repository - it is related to the Python embeddable package in general. The documentation here says that in order to use the embeddable package, you need the Microsoft C runtime installed. It appears that you don't have that installed.

Thanks for the fast response / help! 👍 Yes, that was the case. I just extracted DLL files from "Microsoft C Runtime" installer and put it to same folder with Python executable. That way it works without any extra installation.

For people who face the same issue: you can just go to Python documentation link @adang1345 provided, it will have the link for installing the required runtime. Installation is the most logical option (that way all programs can use the runtime DLLs from "system32"). But if someone faces this issue, and wants 100% portable, 32-bit embedded package, just add DLL files in this archive to embedded Python folder: vcredist-x86-win7.zip

Without the DLLs: 1

With the DLLs: 2