Even though this question is quite old:
Nowadays, using miniconda
/Anaconda
, installation under Win 10 64-bit works like a charm; just do conda install line_profiler
in the environment you are going to use. This will also add the kernprof
command/script to your path in that environment.
Usage:
[add @profile decorators to the functions you want to profile]
kernprof -l ./your_script.py
python -m line_profiler ./your_script.py.lprof