windows – Python official installer missing python27.dll

windows – Python official installer missing python27.dll

At least for the ActiveState Python distribution, and in the official Python distribution:

The dll is in


where NN is the version number. On a 64-bit, a 32 bit dll will be installed here:


and a running 32 bit application will magically translate this to the proper path,

When I link againsy Python27, I use the lib file here:


It is somewhat disappointing that the dll gets put in system directories since it means that you can have only one 32 bit and one 64 bit distribution with the same version number.


Note that if you use the Anaconda or Miniconda Python distributions from Continuum Analytics (, they are much more portable in the sense they package the dll along with the rest of the files in the installation.

I deploy Python via source control so cant rely on


To resolve this, I install Python using the msi package and copy the dll into the same directory as the python.exe. I then commit the python folder to source control for our teams to use. Finally, I uninstall Python from my local machine to ensure a clean environment.

I have not noticed an issue with doing this over the past 7 years but would love to learn more about any caveats using this approach.

windows – Python official installer missing python27.dll

Leave a Reply

Your email address will not be published. Required fields are marked *