Skip to content

Commit 7a64e6f

Browse files
authored
fix #157
1 parent 7ba0324 commit 7a64e6f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

install.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import launch
22
import sys
3-
from importlib_metadata import version
43

54
python = sys.executable
65

76

87
def install():
8+
if not launch.is_installed("importlib_metadata"):
9+
launch.run_pip("install importlib_metadata", "importlib_metadata", live=True)
10+
from importlib_metadata import version
11+
912
if launch.is_installed("tensorrt"):
1013
if not version("tensorrt") == "9.0.1.post11.dev4":
1114
launch.run(

0 commit comments

Comments
 (0)