简体   繁体   English

Python27.dll文件丢失 - 例外

[英]Python27.dll File Missing - Exception

I have downloaded my code from bit-bucket which was made by my group member. 我已经从我的小组成员的bit-bucket下载了我的代码。 It contain all the frameworks and python script folder. 它包含所有框架和python脚本文件夹。 But when I run this code on my system it generates the following error: 但是当我在我的系统上运行此代码时,它会生成以下错误:

This program can't start because python27.dll is missing from your computer. 此程序无法启动,因为您的计算机缺少python27.dll。 Try reinstalling the program to fix this program 尝试重新安装该程序以修复此程序

I have also downloaded and installed python 2.7 on my system but when I run it generates the same error. 我还在我的系统上下载并安装了python 2.7,但是当我运行它时会产生相同的错误。

Please tell me how can I fix this problem. 请告诉我如何解决这个问题。

It's most probably a 32-bit or 64-bit issue. 这很可能是一个32位或64位的问题。 Try downloading proper version. 尝试下载正确的版本。

I also got this error when I copied my python environment from one computer to another. 当我将python环境从一台计算机复制到另一台计算机时,我也遇到了这个错误。 Both computers were 64 bit and the installation was 64 bit. 两台计算机都是64位,安装是64位。 What happens is that python installer updates Microsoft registry. 会发生什么是python安装程序更新Microsoft注册表。 When I simply copied the python files, the registry did not get updated, of course, resulting in the dll file missing error message. 当我只是复制python文件时,注册表没有得到更新,当然,导致dll文件丢失错误消息。

I solved it by installing the 64 bit version of python first on my target computer, and then did my copy of the environment, ie copied c:\\pythonFromComputerA to target computer's c:\\python27, effectively overwriting the python that had just been installed. 我通过在我的目标计算机上首先安装64位版本的python来解决它,然后完成我的环境副本,即将c:\\ pythonFromComputerA复制到目标计算机的c:\\ python27,有效地覆盖刚刚安装的python。 But because the installer updated the registry, I could now run with my python environment on the target computer without getting the error message. 但是因为安装程序更新了注册表,我现在可以在目标计算机上运行我的python环境而不会收到错误消息。

Thought I'd provide this in case others are out there scratching their heads, having correctly matching installation with OS yet getting this error message. 以为我会提供这个,以防其他人在那里挠头,正确匹配安装与操作系统,但收到此错误信息。

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

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