简体   繁体   English

pydbg无法导入pydasm-Python 2.7

[英]pydbg can't import pydasm - Python 2.7

Here is a snippets from my python shell, i can't understand what is wrong there, if somebody has any suggestion i would be glad to hear. 这是我的python shell的摘要,如果有人有任何建议,我将很高兴听到,我不明白那里出了什么问题。

>>> import pydbg
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\pydbg\__init__.py", line 47, in <module>
    from pydbg                   import *
  File "C:\Python27\lib\pydbg\pydbg.py", line 32, in <module>
    import pydasm
ImportError: DLL load failed: The specified module could not be found.
>>> import pydasm
>>>

how come that i can't import pydbg since there it can't import pydasm, and i can import pydasm directly ? 为什么不能导入pydbg呢,因为那里不能导入pydasm,而我可以直接导入pydasm?

我能够通过删除pydbg的site-packages目录中的pydasm.pyd来解决此问题。

Move your pydbg directory from C:\\Python27\\lib\\ to C:\\Python27\\lib\\site-packages\\ , the standard installation location for 3rd party packages. pydbg目录从C:\\Python27\\lib\\移至C:\\Python27\\lib\\site-packages\\ ,这是第三方软件包的标准安装位置。 Alternatively, try the unofficial pydbg binaries from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pydbg . 或者,尝试从http://www.lfd.uci.edu/~gohlke/pythonlibs/#pydbg进行非官方的pydbg二进制文件。

Find pydasm for the python version you are running. 找到您正在运行的python版本的pydasm I think that pydbg comes with pydasm for python2.6. 我认为pydbg带有python2.6的pydasm I don't know why. 我不知道为什么

I found pydasm for python 2.7 on the Internet. 我在互联网上找到python 2.7的pydasm You can also find information about how to convert it yourself. 您还可以找到有关如何自己转换的信息。 I am not getting any errors but I still struggle with pydbg so I am not sure if this is the solution. 我没有收到任何错误,但是我仍然在使用pydbg挣扎,所以我不确定这是否是解决方案。

If you are running python2.7 try this: http://blog.csdn.net/qq_lhz/article/details/6922130 如果您运行的是python2.7,请尝试以下操作: http : //blog.csdn.net/qq_lhz/article/details/6922130

Maybe you can try my precompiled binaries of PyDasm for Python 2.7: 也许您可以尝试使用针对PyDasm的Python 2.7的预编译二进制文件:

https://breakingcode.wordpress.com/2012/04/08/quickpost-installer-for-beaenginepython/ https://breakingcode.wordpress.com/2012/04/08/quickpost-installer-for-beaenginepython/

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

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