Skip to content

Commit ce22db7

Browse files
doc: issues with installation (fixes #16)
1 parent 82de7ed commit ce22db7

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,15 @@ if you are using different versions of python. `virtualenv` is a tool for settin
2727
allows you to have all the dependencies for the tool set up in a single environment, or have different environments set
2828
up for testing using different versions of Python.
2929

30-
### Issues with Windows Installation
30+
### Issues with Installation
3131

32-
When running on Windows, if you get the following error
32+
If you get the following error
3333

3434
`ImportError: failed to find libmagic. Check your installation`
3535

36-
This is because of a mismatch with the installation of the magic library. To resolve, please issue the following commands
36+
This is because of a mismatch with the installation of the magic library. To resolve, please issue the following commands depending on your environment
37+
38+
#### Windows
3739

3840
```bash
3941
pip uninstall python-magic
@@ -43,6 +45,21 @@ pip install python-magic
4345
pip install python-magic-bin
4446
```
4547

48+
#### Linxu based system
49+
50+
Install `libmagic` using a package manager, for example
51+
52+
```bash
53+
apt install libmagic-dev
54+
```
55+
56+
#### MacOS
57+
58+
Install `libmagic` using a package manager, for example
59+
60+
```bash
61+
brew install libmagic
62+
```
4663

4764
## Usage
4865

0 commit comments

Comments
 (0)