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

Method pip_uninstall

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

Source from the content-addressed store, hash-verified

384 return ""
385
386 def pip_uninstall(self, pkg: str, call_log:Optional[Callable[[str], None]] = None) -> Optional[str]:
387 if not self.pip_bin():
388 return "pip未安装"
389 cmd = self.activate_shell() + "\n" + " ".join([self.pip_bin(), "uninstall", "-y", pkg])
390 return _run_command_with_call_log(cmd, call_log)
391
392 def pip_list(self, force: bool = False) -> List[Tuple[str, str]]:
393 if not self.pip_bin():

Callers 1

manage_packageMethod · 0.80

Calls 4

pip_binMethod · 0.95
activate_shellMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected