WENior commited on
Commit
f1e06db
·
verified ·
1 Parent(s): b6113f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -0
app.py CHANGED
@@ -1,4 +1,24 @@
1
  # app.py
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  # -*- coding: utf-8 -*-
3
  import os
4
  import re
 
1
  # app.py
2
+ import sys, subprocess
3
+
4
+ print("=== Python version ===")
5
+ print(sys.version)
6
+
7
+ print("=== pip show kiwipiepy ===")
8
+ try:
9
+ out = subprocess.check_output([sys.executable, "-m", "pip", "show", "kiwipiepy"], text=True)
10
+ print(out)
11
+ except Exception as e:
12
+ print("pip show failed:", e)
13
+
14
+ print("=== pip list (filter kiwi) ===")
15
+ try:
16
+ out = subprocess.check_output([sys.executable, "-m", "pip", "list"], text=True)
17
+ for line in out.splitlines():
18
+ if "kiwi" in line.lower():
19
+ print(line)
20
+ except Exception as e:
21
+ print("pip list failed:", e)
22
  # -*- coding: utf-8 -*-
23
  import os
24
  import re