(self, pkg: str, call_log:Optional[Callable[[str], None]] = None)
| 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(): |
no test coverage detected