Reputation: 455
I have a problem installing lineprofiler for Python.
I've tried pip install --pre line_profiler
, but it doesn't work.
It given following error:
error: Unable to find vcvarsall.bat
Upvotes: 3
Views: 395
Reputation: 9791
line_profiler is implemented in C via Cython in order to reduce the overhead of profiling.
vcvarsall.bat is part of the Microsoft Visual Studio toolset and is used to compile the C extensions.
If you don't want to compile the C extensions yourself, you can download the compiled Windows binary(.exe) from pypi, and install it.
Upvotes: 1