我的Python interpreter使用的msvcrXX.dll版本
Version of msvcrXX.dll that my Python interpereter compiles with
我已经将我的Python 3.3应用程序编译为带有cx_Freeze
的.exe
,并且它只在我的本地机器上运行。
在另一台计算机上,首先它出现了缺少DLL msvcr100.dll
的问题。在那台计算机上安装Microsoft Visual C++ 2010 Redistributable Package
后,它没有显示任何错误,但仍然无法工作,因为没有打开任何内容。
我认为我安装了错误版本的Microsoft Visual C++ Redistributable
。如何找到我的Python解释器使用的msvcrXX.dll
版本?
Python 3.3是使用Visual Studio 2010编译的。使用Msvcr100.dll.
您可以通过sys.version
或platform.python_compiler()
:查看编译器
Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:06:53) [MSC v.1600 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import platform
>>> sys.version
'3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:06:53) [MSC v.1600 64 bit (AMD64)]'
>>> platform.python_compiler()
'MSC v.1600 64 bit (AMD64)'
>>> ^Z
这是Visual Studio 2010的编译器版本:
C:>cl
Microsoft (R) C/C++ Optimizing Compiler Version 16.00.40219.01 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
更直接地,您可以直接举例说明Python DLL的DLL导入:
C:>dumpbin /imports c:windowssystem32python33.dll | findstr /i dll
Dump of file c:windowssystem32python33.dll
File Type: DLL
KERNEL32.dll
USER32.dll
ADVAPI32.dll
SHELL32.dll
MSVCR100.dll
相关文章:
- 挂起和取消挂起一个文件DLL
- std::threads可以从Windows DLL中的全局变量创建/销毁吗?
- 导入库可以跨dll版本工作吗
- 从C++dll访问C#中的一行主要参数
- 链接到自行创建的dll失败
- 为什么使用 P/Invoke 调用 dll 时,某些计算机中的 LoadLibrary 失败?
- 在调用FreeLibrary后,释放动态链接到具有相同版本的CRT堆的DLL的内存
- 如何指定我希望我的LIB链接到的DLL文件?-Visual Studio 2019
- 如何将图像传输到c++(dll)中的缓冲区,然后在c#的缓冲区中读/写
- C++:将外部库链接到dll库
- 在 Windows 上,是否可以让 dll 在不使用 PATH 环境变量的情况下在另一个文件夹中查找依赖项?
- 不同的Visual Studio版本中缺少.dll
- 从DLL中删除类的实例
- 如何包装第三方DLL在R中使用
- 使用c#访问c++dll中带有char*参数的函数时发生AccessViolationException
- 系统.将数组移交给c#中动态加载的c++DLL时发生AccessViolationException
- 为什么导入Mixed native/CLR lib.dll的本机C++应用程序没有在Mixed lib.dll中的外部变
- 当我使用 C++ 中的 C# dll 来使用 Selenium 时,存在异常处理问题
- Python ctypes:不会按预期加载 dll
- 我的Python interpreter使用的msvcrXX.dll版本