Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在python 2.7下安装heapy?_Python_Memory Management_Memory Leaks - Fatal编程技术网

如何在python 2.7下安装heapy?

如何在python 2.7下安装heapy?,python,memory-management,memory-leaks,Python,Memory Management,Memory Leaks,看起来最新版本只适用于2.6 我面临导入错误:DLL加载失败:找不到指定的模块。并且找不到任何解决方案,有人知道吗 Python2.7还有其他可用的内存分析器吗 错误回溯: >>> import guppy >>> from guppy import hpy >>> h = hpy() Traceback (most recent call last): File "<pyshell#3>", line 1, in <

看起来最新版本只适用于2.6

我面临导入错误:DLL加载失败:找不到指定的模块。并且找不到任何解决方案,有人知道吗

Python2.7还有其他可用的内存分析器吗

错误回溯:

>>> import guppy
>>> from guppy import hpy
>>> h = hpy()

Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    h = hpy()
  File "D:\program files\Python2.7\lib\site-packages\guppy\__init__.py", line 37, in hpy
    return r.guppy.heapy.Use
  File "D:\program files\Python2.7\lib\site-packages\guppy\etc\Glue.py", line 45, in __getattr__
    return self._share.getattr(self, name)
  File "D:\program files\Python2.7\lib\site-packages\guppy\etc\Glue.py", line 195, in getattr
    d = self.getattr2(inter, cache, owner, name)
  File "D:\program files\Python2.7\lib\site-packages\guppy\etc\Glue.py", line 213, in getattr2
    x = self.getattr_package(inter, name)
  File "D:\program files\Python2.7\lib\site-packages\guppy\etc\Glue.py", line 261, in getattr_package
    x = self.makeModule(x, name)
  File "D:\program files\Python2.7\lib\site-packages\guppy\etc\Glue.py", line 321, in makeModule
    return Share(module, self, module.__name__, Clamp)
  File "D:\program files\Python2.7\lib\site-packages\guppy\etc\Glue.py", line 184, in __init__
    getattr(inter, name)
  File "D:\program files\Python2.7\lib\site-packages\guppy\etc\Glue.py", line 45, in __getattr__
    return self._share.getattr(self, name)
  File "D:\program files\Python2.7\lib\site-packages\guppy\etc\Glue.py", line 195, in getattr
    d = self.getattr2(inter, cache, owner, name)
  File "D:\program files\Python2.7\lib\site-packages\guppy\etc\Glue.py", line 215, in getattr2
    x = self.getattr3(inter, name)
  File "D:\program files\Python2.7\lib\site-packages\guppy\etc\Glue.py", line 283, in getattr3
    pa = getattr(pa, at)
  File "D:\program files\Python2.7\lib\site-packages\guppy\etc\Glue.py", line 45, in __getattr__
    return self._share.getattr(self, name)
  File "D:\program files\Python2.7\lib\site-packages\guppy\etc\Glue.py", line 195, in getattr
    d = self.getattr2(inter, cache, owner, name)
  File "D:\program files\Python2.7\lib\site-packages\guppy\etc\Glue.py", line 213, in getattr2
    x = self.getattr_package(inter, name)
  File "D:\program files\Python2.7\lib\site-packages\guppy\etc\Glue.py", line 250, in getattr_package
    x = __import__(self.makeName(name), globals(), locals())
  File "D:\program files\Python2.7\lib\site-packages\guppy\heapy\View.py", line 555, in <module>
    prime_builtin_types()
  File "D:\program files\Python2.7\lib\site-packages\guppy\heapy\View.py", line 538, in prime_builtin_types
    import guppy.heapy.heapyc
ImportError: DLL load failed: The specified module could not be found.
导入孔雀鱼 >>>从guppy进口hpy >>>h=hpy() 回溯(最近一次呼叫最后一次): 文件“”,第1行,在 h=hpy() 文件“D:\program files\Python2.7\lib\site packages\guppy\\uuuuu init\uuuuuu.py”,第37行,在hpy中 返回r.guppy.heapy.Use 文件“D:\program files\Python2.7\lib\site packages\guppy\etc\Glue.py”,第45行,在\uuu getattr中__ 返回self.\u share.getattr(self,name) 文件“D:\program files\Python2.7\lib\site packages\guppy\etc\Glue.py”,第195行,在getattr中 d=self.getattr2(inter、缓存、所有者、名称) 文件“D:\program files\Python2.7\lib\site packages\guppy\etc\Glue.py”,第213行,在getattr2中 x=self.getattr\u包(inter,name) 文件“D:\program files\Python2.7\lib\site packages\guppy\etc\Glue.py”,第261行,在getattr\u包中 x=self.makeModule(x,名称) makeModule中的文件“D:\program files\Python2.7\lib\site packages\guppy\etc\Glue.py”,第321行 返回共享(模块、自身、模块名称、夹具) 文件“D:\program files\Python2.7\lib\site packages\guppy\etc\Glue.py”,第184行,在\uuu init中__ getattr(inter,name) 文件“D:\program files\Python2.7\lib\site packages\guppy\etc\Glue.py”,第45行,在\uuu getattr中__ 返回self.\u share.getattr(self,name) 文件“D:\program files\Python2.7\lib\site packages\guppy\etc\Glue.py”,第195行,在getattr中 d=self.getattr2(inter、缓存、所有者、名称) 文件“D:\program files\Python2.7\lib\site packages\guppy\etc\Glue.py”,第215行,在getattr2中 x=self.getattr3(inter,name) 文件“D:\program files\Python2.7\lib\site packages\guppy\etc\Glue.py”,第283行,在getattr3中 pa=getattr(pa,at) 文件“D:\program files\Python2.7\lib\site packages\guppy\etc\Glue.py”,第45行,在\uuu getattr中__ 返回self.\u share.getattr(self,name) 文件“D:\program files\Python2.7\lib\site packages\guppy\etc\Glue.py”,第195行,在getattr中 d=self.getattr2(inter、缓存、所有者、名称) 文件“D:\program files\Python2.7\lib\site packages\guppy\etc\Glue.py”,第213行,在getattr2中 x=self.getattr\u包(inter,name) 文件“D:\program files\Python2.7\lib\site packages\guppy\etc\Glue.py”,第250行,在getattr\u包中 x=\uuuuu导入(self.makeName(name)、globals()、locals()) 文件“D:\program files\Python2.7\lib\site packages\guppy\heapy\View.py”,第555行,在 prime_内置类型() 文件“D:\program files\Python2.7\lib\site packages\guppy\heapy\View.py”,第538行,采用prime\u内置类型 导入guppy.heapy.heapyc ImportError:DLL加载失败:找不到指定的模块。
目录中可能缺少所需的dll-您可以尝试将其从2.6目录复制到适当的路径中。但是没有保证。

当我试图从guppy源文件所在的文件夹启动python时,我遇到了相同的错误。但是在这个目录之外,我在实例化hpy时遇到了问题。最后,通过从主干安装python2.7,我得到了heapy的工作

pip install https://guppy-pe.svn.sourceforge.net/svnroot/guppy-pe/trunk/guppy
  • 从(或您需要的任何版本)下载源代码
  • 提取tar文件:tar zxf[您的guppy tar文件]
  • 进入文件夹:cd guppy-[版本]
  • 请注意setup.py文件。运行安装程序:sudo python setup.py install
  • Guppy已安装。

    我收到404“此服务器上未找到请求的URL/svnroot/Guppy pe/trunk/Guppy。”