MCPcopy Index your code
hub / github.com/CScorza/IntelOSINT / _install_python_package

Function _install_python_package

IntelOSINT.py:125–135  ·  view source on GitHub ↗
(pkg_name: str)

Source from the content-addressed store, hash-verified

123 setup_env()
124
125def _install_python_package(pkg_name: str) -> bool:
126 try:
127 subprocess.check_call(
128 [sys.executable, "-m", "pip", "install", "--upgrade", "pip", pkg_name],
129 stdout=sys.stdout,
130 stderr=sys.stderr,
131 timeout=120,
132 )
133 return True
134 except Exception:
135 return False
136
137
138def _bootstrap_dependencies():

Callers 4

_bootstrap_dependenciesFunction · 0.85
_resolve_ffmpeg_binFunction · 0.85
probe_image_metadataFunction · 0.85
api_media_processFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected