Skip to content

Commit 1a9f90a

Browse files
authored
Update README.md
1 parent b8b200c commit 1a9f90a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,9 @@ that must be installed as well:
6161

6262
### Windows
6363

64-
You'll need DLLs for libmagic. @julian-r has uploaded a version of this project that includes binaries to PyPI:
65-
https://pypi.python.org/pypi/python-magic-bin/0.4.14
66-
67-
Other sources of the libraries in the past have been [File for Windows](http://gnuwin32.sourceforge.net/packages/file.htm) . You will need to copy the file `magic` out of `[binary-zip]\share\misc`, and pass its location to `Magic(magic_file=...)`.
68-
69-
If you are using a 64-bit build of python, you'll need 64-bit libmagic binaries which can be found here: https://github.com/pidydx/libmagicwin64. Newer version can be found here: https://github.com/nscaife/file-windows.
64+
You'll need DLLs for libmagic. @julian-r maintains a pypi package with the DLLs, you can fetch it with:
7065

66+
$ pip install python-magic-bin
7167

7268
### OSX
7369

@@ -83,7 +79,8 @@ If you are using a 64-bit build of python, you'll need 64-bit libmagic binaries
8379

8480
- 'WindowsError: [Error 193] %1 is not a valid Win32 application':
8581
Attempting to run the 32-bit libmagic DLL in a 64-bit build of
86-
python will fail with this error. Here are 64-bit builds of libmagic for windows: https://github.com/pidydx/libmagicwin64
82+
python will fail with this error. Here are 64-bit builds of libmagic for windows: https://github.com/pidydx/libmagicwin64.
83+
Newer version can be found here: https://github.com/nscaife/file-windows.
8784

8885
- 'WindowsError: exception: access violation writing 0x00000000 ' This may indicate you are mixing
8986
Windows Python and Cygwin Python. Make sure your libmagic and python builds are consistent.

0 commit comments

Comments
 (0)