At least for the ActiveState Python distribution, and in the official Python distribution:
The dll is in
C:\Windows\System\PythonNN.dll
where NN is the version number. On a 64-bit, a 32 bit dll will be installed here:
%SystemRoot%\SysWoW64
and a running 32 bit application will magically translate this to the proper path, http://en.wikipedia.org/wiki/WoW64
When I link againsy Python27, I use the lib file here:
C:\Python27\libs\python27.lib
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.
Update:
Note that if you use the Anaconda or Miniconda Python distributions from Continuum Analytics (http://continuum.io), they are much more portable in the sense they package the dll along with the rest of the files in the installation.
Related Posts:
- How can I install pip on Windows?
- No Module Named ‘_pywrap_tensorflow_internal’
- “ImportError: No module named site” on Windows
- “Python version 2.7 required, which was not found in the registry” error when attempting to install netCDF4 on Windows 8
- pip not recognised as an internal or external command
- Tensorflow import error: No module named ‘tensorflow’
- How do I install pip on macOS or OS X?
- ImportError: No module named tensorflow
- PermissionError: [Errno 13] Permission denied
- Permanently add a directory to PYTHONPATH?
- How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
- “Defaulting to user installation because normal site-packages is not writeable” python message
- Python3: ImportError: No module named ‘_ctypes’ when using Value from module multiprocessing
- ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL’s are there
- anaconda – path environment variable in windows
- ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL’s are there
- How to remove anaconda from windows completely?
- How to clear the interpreter console?
- How to install pip3 on Windows?
- Python Setup Disabling Path Length Limit Pros and Cons?
- How to clear the interpreter console?
- Installing tensorflow with anaconda in windows
- error: Unable to find vcvarsall.bat
- error: Unable to find vcvarsall.bat
- “OverflowError: Python int too large to convert to C long” on windows but not mac
- ‘pip3’ is not recognized as an internal or external command, operable program or batch file
- Git Bash won’t run my python files?
- How to install xgboost in Anaconda Python (Windows platform)?
- “OverflowError: Python int too large to convert to C long” on windows but not mac
- Why does “pip install” inside Python raise a SyntaxError?
- How to install pytorch in windows?
- “RuntimeError: Make sure the Graphviz executables are on your system’s path” after installing Graphviz 2.38
- How to install PyQt5 on Windows?
- How to stop Python closing immediately when executed in Microsoft Windows
- How to downgrade the installed version of ‘pip’ on windows?
- Pip – Fatal error in launcher: Unable to create process using ‘”‘
- python pip on Windows – command ‘cl.exe’ failed
- Windows- Pyinstaller Error “failed to execute script ” When App Clicked
- python is not recognized windows 10
- Anaconda Installed but Cannot Launch Navigator
- ImportError: No module named cv2
- How to get the text cursor position in Windows?
- How to change pip installation path
- ImportError: cannot import name NUMPY_MKL
- Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll
- How do I update a Python package?
- Open File in Another Directory (Python)
- How to know/change current directory in Python shell?
- Failed building wheel for Twisted in Windows 10 python 3
- Installing scipy for python 2.7
- Error: No module named ‘fcntl’
- How can I install the Beautiful Soup module on the Mac?
- Anaconda “failed to create process”
- Install pip for python 3.5
- How do I install pip on macOS or OS X?
- Print string to text file
- Unexplained crashes related to ntdll.dll
- How can I parse a YAML file in Python
- Cannot find module cv2 when using OpenCV
- Maximum and Minimum values for ints
- How is Anaconda related to Python?
- What is the python keyword “with” used for? [duplicate]
- Python List vs. Array – when to use?
- How to terminate a script?
- numpy array concatenate: “ValueError: all the input arrays must have same number of dimensions”
- csv.Error: iterator should return strings, not bytes
- SyntaxError: non-default argument follows default argument
- socket.error: [Errno 48] Address already in use
- ValueError: need more than 1 value to unpack python
- What is the best way to exit a function (which has no return value) in python before the function ends (e.g. a check fails)?
- How to disable Python warnings?
- LinAlgError: Last 2 dimensions of the array must be square
- How to get data from SNMP with python?
- Displaying better error message than “No JSON object could be decoded”
- List attributes of an object [duplicate]
- How can I set the aspect ratio in matplotlib?
- In Python how should I test if a variable is None, True or False
- Pythonic way to iterate through a range starting at 1
- TypeError: ‘bool’ object is not callable
- How do I maximize the display screen in PyGame?
- Why does PyQt crashes without information? (exit code 0xC0000409)
- How to put the legend out of the plot
- Python string prints as [u’String’]
- How can I check the extension of a file?
- Matplotlib: TypeError: can’t multiply sequence by non-int of type ‘numpy.float64’
- NameError: global name ‘unicode’ is not defined – in Python 3
- Create nice column output in python
- TypeError: unsupported operand type(s) for +=: ‘int’ and ‘list’
- TypeError: int() argument must be a string, a bytes-like object or a number, not ‘list’
- plot a circle with pyplot
- TypeError: super() takes at least 1 argument (0 given) error is specific to any python version?
- ValueError: cannot switch from manual field specification to automatic field numbering
- TemplateDoesNotExist at /
- How to query as GROUP BY in django?
- Python regex match space only
- OpenCV houghLinesP parameters
- Generate a random letter in Python
- NameError from Python input() function
- Flask Value error view function did not return a response [duplicate]
- AttributeError: ‘Series’ object has no attribute ‘split’ error in sending emails