[Solved] py2exe Python 3.4, what dll

i’m trying to create an exe from a python script.
I’ve read the instractions on the py2exe site, and the exe works on my PC, but it another it tells me “MSVCR100.DLL is missing”.

Now i’m confused, on the site they tell me to use MSVCP90.DLL but the exe wants MSVCR100.DLL.

another thing, do i include it with the ‘dist’ folder, or just point setup.py to a location where that DLL is located?

I’m using python 3.4

Enquirer: Alex Zel

||

Solution #1:

Starting with Python 3.3, the Windows build of Python is built using Visual Studio 2010. So you will need to use MSVCR100.DLL for Python 3.3 or 3.4.

See this tutorial step for specifying the correct library. Just replace the *90.DLL by *100.DLL.

Note that starting with Python 3.5, Visual Studio 2015 is being used, which introduces a new way of distributing the CRT, so you won’t need a MSVCR140.dll but something else instead. It’s likely that py2exe will take a while to become compatible.

Respondent: poke

Solution #2:

It means that the computer you want to run the program on is missing the Microsoft Visual C++ libraries that you can download from Microsoft website:

http://www.microsoft.com/en-us/download/details.aspx?id=5555 (32bit) http://www.microsoft.com/en-us/download/details.aspx?id=14632 (64bit)

Solution #3:

You need to include MS VC redistributable with your program as per py2exe tutorial – Providing the Microsoft Visual C runtime DLL.

Possible ways include:

Respondent: ivan_pozdeev

Solution #4:

It’s been fixed in PyInstaller 3.2.1 (https://pyinstaller.readthedocs.io/en/stable/CHANGES.html#id1). If possible, upgrade to that version. That resolved the issue in my test.

Respondent: baldprussian

The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .

Leave a Reply

Your email address will not be published.