I have Python 3.9. I am running Spyder 5.1.5 through the anaconda navigator. I am trying to install the line profiler using the anaconda prompt. I have run both
conda install spyder-line-profiler -c spyder-ide
and pip install spyder-line-profiler
. Both options tell me that the profiler has been installed.
When go to view>panes, I do not see the line profiler as an option. I tried adding the @profile header to one of my functions and running the regular profiler to see if it would work. It doesn't recognize the header. Do I need a different version of Spyder or Python to get the line profiler working?
Versions have advanced since this question was asked, but I have a solution for my current version (Spyder 5.3.2).
Solution: conda install spyder-line-profiler=0.3.1 -c conda-forge
.
Reasons:
spyder-ide