Skip to content

Commit 0d8f714

Browse files
Include info for Windows users needing a compiler for brotlipy
1 parent 0a62385 commit 0d8f714

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,19 @@ Windows has `ar` and `Expand` installed in default, but `7z` in particular might
143143
If you want to run our test-suite or scan a zstd compressed file, We recommend installing this [7-zip-zstd](https://github.com/mcmilk/7-Zip-zstd)
144144
fork of 7zip. We are currently using `7z` for extracting `jar`, `apk`, `msi`, `exe` and `rpm` files.
145145

146+
If you get an error from pip about building the wheel like this
147+
"building 'libbrotli' library
148+
149+
error:Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
150+
151+
-----------------------------------------
152+
ERROR: Failed building wheel for brotlipy"
153+
154+
This indicate,you may need to install the windows compiler tools from $url so pip can compile all needed components
155+
If you follow the link it gives you https://visualstudio.microsoft.com/visual-cpp-build-tools/ you should be able to download the compiler for free.
156+
Basically, the python "wheel" here in the package for brotlipy contains a c library and they haven't provided a pre-compiled one for your specific platform, so pip is trying to do that for you so the library will work, but it wasn't able to because it couldn't find the appropriate compiler.
157+
If you already have a C/C++ compiler, you can probably tell pip to use that one, but since the microsoft compiler is free and available at the link, that's probably the easiest way to solve the error.
158+
146159
## Feedback & Contributions
147160

148161
Bugs and feature requests can be made via [GitHub

0 commit comments

Comments
 (0)