Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error installing Python lineprofiler

Tags:

python

pip

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
like image 934
Seba92 Avatar asked Feb 03 '26 13:02

Seba92


1 Answers

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.

like image 194
Leonardo.Z Avatar answered Feb 05 '26 07:02

Leonardo.Z



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!