You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows #248 is still a problem and automatic monkey patching is not an option when using pipx, because the cache path (virtual environment path) is always random.
Guys, if you have a working file.exe v5.46 for Windows, please attach it here.
So far I have managed to find and properly test v5.44 if anyone is looking for it.
Activity
jspraul commentedon Sep 5, 2023
python-magic-bin v0.4.14 was published in 2017. vcpkg can build libmagic v5.40 (circa 2021) with some tweaks for Windows.
Download and install the Visual Studio 2017 Build Tools (link source)
Per https://github.com/microsoft/vcpkg#quick-start-windows:
git clone https://github.com/microsoft/vcpkg.\vcpkg\bootstrap-vcpkg.bat.\vcpkg\vcpkg install libmagic --triplet=x64-windowsUnder
.\vcpkg\packages\libmagic_x64-windows(don't use mine) you'll find:Place these files in the current directory, on the path, or overwrite after pip puts python-magic-bin under \Lib\site-packages\magic\libmagic
Related: hey-red/Mime#49 | https://github.com/hey-red/Libmagic-Build/tree/master/windows
ahupp commentedon Oct 10, 2023
martin-braun commentedon Oct 29, 2024
On Windows #248 is still a problem and automatic monkey patching is not an option when using
pipx, because the cache path (virtual environment path) is always random.flawrist commentedon Jun 3, 2025
Guys, if you have a working
file.exev5.46 for Windows, please attach it here.So far I have managed to find and properly test v5.44 if anyone is looking for it.