rkern / line_profiler

(OLD REPO) Line-by-line profiling for Python - Current repo ->
https://github.com/pyutils/line_profiler
Other
3.6k stars 254 forks source link

Update running part in README #99

Closed Beastrock closed 6 years ago

Beastrock commented 7 years ago

When I was installing your module I really got confused with running "kernprof" because of launching it printed me "kernprof: command not found" message.

I am running my project from virtual env, so it is the main thing that you should run kernprof like this: $ venv/bin/kernprof -l script.py

I think it could be better with that reminder in docs.

caethan commented 6 years ago

This is a bit odd --- if you're running from inside a virtual environment, the venv bin should be in your $PATH already. Are you trying to run kernprof from outside the virtual environment?