We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60c2d78 commit d8bdbeeCopy full SHA for d8bdbee
make-html.py
@@ -39,11 +39,16 @@
39
try:
40
import mistune
41
except ImportError:
42
+ import platform
43
+ if platform.system() == 'Windows':
44
+ python = 'py'
45
+ else:
46
+ python = 'python3'
47
print("mistune isn't installed.", file=sys.stderr)
- print("You can install it like this:")
48
+ print("You can install it by running this command on a terminal or ")
49
+ print("command prompt:")
50
print()
- print(">>> import pip")
- print(">>> pip.main(['install', '--user', 'mistune'])")
51
+ print(" %s -m pip install --user mistune" % python)
52
sys.exit(1)
53
54
0 commit comments