Skip to content

Commit 802ed1f

Browse files
committed
If PIL.image is missing, tell user to install pillow
1 parent 95805d2 commit 802ed1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ def _check_deps():
5555
try:
5656
__import__(name)
5757
except ImportError:
58-
missing.append(name)
58+
if name == 'PIL.Image':
59+
missing.append('pillow')
60+
else:
61+
missing.append(name)
5962
if missing:
6063
raise ImportError(
6164
"The following dependencies are missing to build the "

0 commit comments

Comments
 (0)