MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / _install_pip

Method _install_pip

mod/project/python/pyenv_tool.py:322–326  ·  view source on GitHub ↗
(self, call_log:Optional[Callable[[str], None]] = None)

Source from the content-addressed store, hash-verified

320 return res_sh + "\n"
321
322 def _install_pip(self, call_log:Optional[Callable[[str], None]] = None) -> Optional[str]:
323 if not callable(call_log):
324 call_log = lambda x: print(x)
325 sh = self.activate_shell() + "\n" + " ".join([self.bin_path, "-u", "-m", "ensurepip"])
326 return _run_command_with_call_log(sh, call_log)
327
328 def pip_install(self, pkg: str, version: str= "", no_cache: bool=False, call_log:Optional[Callable[[str], None]] = None) -> Optional[str]:
329 if not self.pip_bin():

Callers 1

pip_installMethod · 0.95

Calls 3

activate_shellMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected