简体   繁体   English

共享的64位python安装

[英]Shared 64bit python installation

I keep a 32bit python26 installation on a shared drive which other computers use to run scripts. 我在其他计算机用来运行脚本的共享驱动器上保留了32位python26安装。 These computers have no python interpreter installed. 这些计算机未安装python解释器。

I tried to put a 64bit python27 on the shared drive and the python.exe fails to start on the remote computers: 我试图将64位python27放在共享驱动器上,并且python.exe无法在远程计算机上启动:

在此处输入图片说明

All the remote pc's run 64bit Windows 7. They have a mapped drive "Z" with the python directory and issue commands like: 所有远程PC都运行64位Windows7。它们具有带有python目录的映射驱动器“ Z”,并发出以下命令:

z:\python27\python.exe somescript.py

Do I need to drop some extra dll's on the 64bit python27 shared directory to make it work? 我是否需要在64位python27共享目录上删除一些额外的dll才能使其正常工作?

In future, to avoid this install python on the development machine for "Current User". 将来,为避免在“当前用户”的开发机器上安装python,请避免使用该命令。 This will put pythonXX.dll in the install directory, eg C:\\Python27 and then you can just copy the whole folder to Z:\\ and be done. 这会将pythonXX.dll放入安装目录,例如C:\\Python27 ,然后您只需将整个文件夹复制到Z:\\就可以了。

When you install python for "All Users" the pythonXX.dll goes into Windows\\System32 (or Windows\\SysWOW64 ). 当为“所有用户”安装python时,pythonXX.dll进入Windows\\System32 (或Windows\\SysWOW64 )。

Just to close this question. 只是为了结束这个问题。 You will need to put python27.dll on the shared python folder. 您需要将python27.dll放在共享的python文件夹中。 This is usually on the C:\\Windows\\System32 folder of a local installation. 这通常在本地安装的C:\\Windows\\System32文件夹中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM