jadechoghari
commited on
Commit
•
4114685
1
Parent(s):
4861323
Update __init__.py
Browse files- __init__.py +1 -0
__init__.py
CHANGED
@@ -11,6 +11,7 @@ logger = logging.getLogger(__name__)
|
|
11 |
def install_package(package_name):
|
12 |
if importlib.util.find_spec(package_name) is None:
|
13 |
logger.info(f"Package '{package_name}' not found. Installing...")
|
|
|
14 |
subprocess.check_call([sys.executable, "-m", "pip", "install", package_name])
|
15 |
else:
|
16 |
logger.info(f"Package '{package_name}' is already installed.")
|
|
|
11 |
def install_package(package_name):
|
12 |
if importlib.util.find_spec(package_name) is None:
|
13 |
logger.info(f"Package '{package_name}' not found. Installing...")
|
14 |
+
print(f"Package '{package_name}' not found. Installing...")
|
15 |
subprocess.check_call([sys.executable, "-m", "pip", "install", package_name])
|
16 |
else:
|
17 |
logger.info(f"Package '{package_name}' is already installed.")
|