简体   繁体   English

找不到python26.dll

[英]python26.dll was not found

When I try pyuic4 -o hello.py hello.ui in command prompt, an error occurs saying 当我在命令提示符下尝试pyuic4 -o hello.py hello.ui时,出现错误提示

python26.dll was not found 找不到python26.dll

I downloaded the same and copied in C:\\windows\\system32\\... . 我下载了相同的文件并复制到C:\\windows\\system32\\... But now I'm getting the following error: 但是现在我收到以下错误:

C:\>pyuic4 -o hello.py hello.ui
Traceback (most recent call last):
  File "C:\Python26\Lib\site-packages\PyQt4\uic\pyuic.py", line 4, in <module>
    from PyQt4 import QtCore
ImportError: Module use of python26.dll conflicts with this version of Python.

whats the solution? 解决方案是什么?

i installed PyQt-Py2.6-gpl-4.7-1.exe and python-2.5.msi 我安装了PyQt-Py2.6-gpl-4.7-1.exe和python-2.5.msi

Binary packages are compiled against a specific python version. 二进制包针对特定的python版本进行编译。
You should always install the binary package corresponding to your installed python version. 您应该始终安装与已安装的python版本相对应的二进制软件包。 The python version is often indicated in the name of the package. 程序包名称中通常会标明python版本。 In your case, Py2.6 indicates that this PyQt distribution is to be installed with Python 2.6. 在您的情况下, Py2.6表示此PyQt发行版将与Python 2.6一起安装。

python26.dll is part of your Python installation (check the root directory, /lib and /bin subdirectories of your python installation; try to add that directory to the PATH). python26.dll是Python安装的一部分(检查python安装的根目录,/ lib和/ bin子目录;尝试将该目录添加到PATH)。 As you installed another python26.dll, it obviously won't necessarily match your python installation. 当您安装了另一个python26.dll时,它显然不一定与您的python安装相匹配。 Remove the downloaded python26.dll. 删除下载的python26.dll。 Also, don't install such libraries to system paths like windows\\system32, that's a sure recipe for problems. 另外,不要将此类库安装到Windows \\ system32之类的系统路径,这肯定是解决问题的方法。

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

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