ModuleNotFoundError: No module named 'pyinstrument.low_level.stat_profile'
wjunneng opened this issue · 4 comments
wjunneng commented
version:pyinstrument 4.2.0 pypi_0 pypi
Python 3.7.13
from pyinstrument import Profiler
profiler = Profiler()
profiler.start()
...
profiler.stop()
profiler.print()
raise ModuleNotFoundError: No module named 'pyinstrument.low_level.stat_profile'
wjunneng commented
try:
conda install -c conda-forge conda-forge::pyinstrument
success!!!
joerick commented
How were you installing pyinstrument to get the above error?
That module is compiled, so it seems like the compilation step was missing in however you installed it.
WMRamadan commented
try: conda install -c conda-forge conda-forge::pyinstrument
success!!!
@wjunneng Does this mean you solved this issue?
joerick commented
Closed, feel free to reopen if there's still an issue.