Issue
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?
Solution
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:
- Version 0.3.0 is incompatible with Spyder 5.3.2 (see Github)
- Version 0.3.1 is currently unavailable on
spyder-ide
Answered By - Ilya
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.