Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d8bdbee

Browse filesBrowse files
committed
pip.main is gone in new pips
1 parent 60c2d78 commit d8bdbee
Copy full SHA for d8bdbee

File tree

Expand file treeCollapse file tree

1 file changed

+8
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-3
lines changed
Open diff view settings
Collapse file

‎make-html.py‎

Copy file name to clipboardExpand all lines: make-html.py
+8-3Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,16 @@
3939
try:
4040
import mistune
4141
except ImportError:
42+
import platform
43+
if platform.system() == 'Windows':
44+
python = 'py'
45+
else:
46+
python = 'python3'
4247
print("mistune isn't installed.", file=sys.stderr)
43-
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:")
4450
print()
45-
print(">>> import pip")
46-
print(">>> pip.main(['install', '--user', 'mistune'])")
51+
print(" %s -m pip install --user mistune" % python)
4752
sys.exit(1)
4853

4954
try:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.