我在Windows上使用python创建了一些程序。但是我想把它部署到Windows上。是否有必要在windows上进行新的构建?或者有可能使构建在这两种系统上都能工作?
编辑(编辑2-非常简单的程序也不工作):的设置:
from distutils.core import setup
import py2exe
setup(console=['orderer.py'])使用依赖关系资源管理器,我检查了依赖关系如下:
msvcr90.dll
kernel32.dll
+ntdll.dll几乎解决了:
我想出了安装:http://www.microsoft.com/downloads/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en做的事情。但是我以前尝试过手动提供msvrc90.dll,但是它没有工作,有任何方法可以自动地重新分发吗?否则我必须向他提供这个安装文件。
最后一个问题和主要问题
现在我对msvcrt.dll有了问题。发生在windows xp上的消息:
过程入口点wcsscpy_s无法位于动态链接库msvcrt.dll中。
我的版本是7.0.6001.18000
但XP 7.0.2600.5512
有办法解决这个问题吗?
似乎我没有排除几个dll的..。愚蠢的错误:
$ grep -lir msvcrt.dll .
./buildout
./buildtest.py
./dist/ACTIVEDS.dll
./dist/adsldpc.dll
./dist/ATL.DLL
./dist/credui.dll
./dist/DSOUND.dll
./dist/MAPI32.dll
./dist/PROPSYS.dll
./dist/WLDAP32.dll现在起作用了!
发布于 2011-01-12 20:00:55
创建一个名为"Microsoft.VC90.CRT.manifest“的文件,其内容在py2exe和msvcr90.dll、msvcp90.dll和msvcm90.dll文件创建的可执行文件旁边:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<noInheritable/>
<assemblyIdentity
type="win32"
name="Microsoft.VC90.CRT"
version="9.0.21022.8"
processorArchitecture="x86"
publicKeyToken="1fc8b3b9a1e18e3b"
/>
<file name="msvcr90.dll" />
<file name="msvcp90.dll" />
<file name="msvcm90.dll" />
</assembly>发布于 2011-01-08 20:06:43
如果您的vista系统上有32位python,并且使用py2exe创建一个exe,那么它也应该运行在XP上。
你遇到什么问题了吗?如果是的话,他们是什么?
https://stackoverflow.com/questions/4635356
复制相似问题