rkern / line_profiler

(OLD REPO) Line-by-line profiling for Python - Current repo ->
https://github.com/pyutils/line_profiler
Other
3.61k stars 255 forks source link

Installation failure #78

Closed Darker closed 7 years ago

Darker commented 7 years ago
running install

running build

running build_py

creating build

creating build\lib.win-amd64-3.4

copying line_profiler.py -> build\lib.win-amd64-3.4

copying kernprof.py -> build\lib.win-amd64-3.4

running build_ext

building '_line_profiler' extension

error: Unable to find vcvarsall.bat

I get this error when I try to install using pip. After that, the installation terminates and the tool is not available.

caethan commented 7 years ago

Looks like you need the Visual C++ compiler for Python. Take a look here: https://www.microsoft.com/en-us/download/details.aspx?id=44266

Let me know if this fixes the problem. I'll see if I can dig up a Windows machine to compile a wheel for it, but right now most everything requires compilation on your machine.

caethan commented 7 years ago

See also https://github.com/rkern/line_profiler/issues/63

Darker commented 7 years ago

I fixed this by downloading the *.whl file from some website. I'll try to install the compiler. Thanks for reply.

caethan commented 7 years ago

Mind linking where you got the wheel from?

On Tue, Nov 22, 2016 at 4:45 AM Jakub Mareda notifications@github.com wrote:

I fixed this by downloading the *.whl file from some website. I'll try to install the compiler. Thanks for reply.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/rkern/line_profiler/issues/78#issuecomment-262231552, or mute the thread https://github.com/notifications/unsubscribe-auth/AFEXLekl8wFQ0d6kUKaeHPkNcq5r-DKEks5rAuPUgaJpZM4K3ulk .

Darker commented 7 years ago

No problem, it's in my home computer's history. When I come home I'll share the link.

Rejerh commented 7 years ago

Hi Darker,

did you find where the .whl came from? Any chance you could write down a quick step through on how to fix this problem?

Thanks a lot

Darker commented 7 years ago

Ok, finally found it: http://www.lfd.uci.edu/~gohlke/pythonlibs/ Specifically the file I used: http://www.lfd.uci.edu/~gohlke/pythonlibs/g7ckv9dk/line_profiler-2.0-cp34-cp34m-win_amd64.whl

I don't remember how did I install it anymore. There are tutorials for that though.