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
你的答案是誤導性的,OS X在PyPy上是beta版本,*而不是在CPython上,但它也是2.6後 – fijal