Seba92
Seba92

Reputation: 455

error installing Python lineprofiler

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

Answers (1)

Leonardo.Z
Leonardo.Z

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

Related Questions