2015-07-21 123 views
1

「命名_vmprof無模塊」 我複製從這裏的問題,希望有更多的知名度,謝謝:) https://github.com/vmprof/vmprof-python/issues/24錯誤在Mac OS X 10.9.5 + pypy 2.6

大家好, 當我運行

#pypy -m vmprof test.py 
No module named _vmprof; 'vmprof' is a package and cannot be directly executed 

另一種情況:

#vmprofshow 
Traceback (most recent call last): 
    File "<builtin>/app_main.py", line 75, in run_toplevel 
    File "/vmprofshow", line 9, in <module> 
    load_entry_point('vmprof==0.1.3', 'console_scripts', 'vmprofshow')() 
    File "/site-packages/pkg_resources.py", line 352, in load_entry_point 
    return get_distribution(dist).load_entry_point(group, name) 
    File "/site-packages/pkg_resources.py", line 2307, in load_entry_point 
    return ep.load() 
    File "/site-packages/pkg_resources.py", line 2021, in load 
    entry = __import__(self.module_name, globals(),globals(), ['__name__']) 
    File "/site-packages/vmprof/__init__.py", line 7, in <module> 
    import _vmprof 
ImportError: No module named _vmprof 

我的環境:

  • 的Mac OS X 10.9.5
  • pypy 2.6

感謝很多:)上PyPy

回答

2

vmprof僅在64位Linux啓用現在。 https://vmprof.readthedocs.org/en/latest/的文檔有誤導性:OS/X或FreeBSD上的vmprof測試版僅適用於CPython,不適用於PyPy。

+0

你的答案是誤導性的,OS X在PyPy上是beta版本,*而不是在CPython上,但它也是2.6後 – fijal