"No module named _vmprof" Mac OS X 10.9.5 + pypy 2.6 上的错误
"No module named _vmprof" error on Mac OS X 10.9.5 + pypy 2.6
我从这里复制了这个问题,希望有更多的知名度,谢谢 :)
https://github.com/vmprof/vmprof-python/issues/24
大家好,
当我运行
#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 上的 vmprof 目前仅在 64 位 Linux 上启用。 https://vmprof.readthedocs.org/en/latest/ 上的文档具有误导性:OS/X 或 FreeBSD 上的 vmprof beta 版本仅适用于 CPython,不适用于 PyPy。
我从这里复制了这个问题,希望有更多的知名度,谢谢 :) https://github.com/vmprof/vmprof-python/issues/24
大家好, 当我运行
#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 上的 vmprof 目前仅在 64 位 Linux 上启用。 https://vmprof.readthedocs.org/en/latest/ 上的文档具有误导性:OS/X 或 FreeBSD 上的 vmprof beta 版本仅适用于 CPython,不适用于 PyPy。