Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/pymilvus/model/utils/dependency_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
def prompt_install(package: str, warn: bool = False): # pragma: no cover
cmd = f"pip install -q {package}"
try:
print(f"milvus-model will install {package} with `{cmd}`.\n"
f"Note: If you don't use pip to manage your environment, please install {package} manually.")
if warn and input(f"Install {package}? Y/n: ") != "Y":
raise ModuleNotFoundError(f"No module named {package}")
print(f"start to install package: {package}")
Expand Down