停止执行 “conda remove” 命令在 Miniconda3 中。

huangapple go评论78阅读模式
英文:

Halting "conda remove" command in Miniconda3

问题

背景: 我正在进行一个关于高性能计算机的研究项目,该计算机运行Linux操作系统,需要进行相当多的设置才能登录。我使用MobaXTerm和VPN;为了使终端会话正常工作,需要花费一些时间。

我使用Miniconda3来管理我的环境,但其中一个环境变得非常庞大,移除软件包需要花费数小时。

问题: 命令$ conda remove [软件包名称]运行起来非常慢,我目前正在寻找解决方法。我希望每次运行conda命令时都不必重新启动终端,因为对于我的大型环境,它会无限期地卡住运行。

此图像显示了移除命令卡住的位置。
Linux终端中conda remove命令的片段

问题: 有人知道在使用戴尔笔记本电脑的Linux上停止/终止conda命令的键盘快捷键/解决方法吗?

我尝试过的方法:
我尝试了以下组合键:
Esc | Ctrl + Q | Ctrl + Shift + Q ... 以及Ctrl、Shift、Q、Esc的类似组合。

我寻找了MobaXTerm可以停止命令的方法,并检查了各种“终端”选项等。

我查阅了这个页面这个页面这个页面这个页面以找到相关信息... 但是所有带有相关关键字的搜索都没有找到任何东西。

如果有人知道如何简单终止此命令(也许还有其他慢的conda命令),而不必重新启动整个会话,那将加快我的进展,使我的生活变得更轻松。提前感谢您!

英文:

Background: I'm working on a research project on a High-Performance Computing machine running Linux OS that requires a fair amount of setup to log into. I use MobaXTerm and a VPN; it takes a while to get everything logged in for a working terminal session.

I'm using Miniconda3 for managing my environments, but one environment specifically has gotten quite large and removing packages is taking hours upon hours.

Problem: The command $ conda remove [package name] takes forever to run and I'm currently browsing solutions for it. I would like to not have to restart my terminal every time I run the conda command as it gets stuck running indefinitely for my large environment.

This image is the line at which the remove command gets stuck.
Linux terminal snippet of conda remove command

Question: Does anyone know a keyboard shortcut/solution for Linux using a Dell Laptop for halting/killing conda commands?

What I've Tried:
I've been trying the following key combinations:
Esc | Ctrl + Q | Ctrl + Shift + Q ... and similar combinations of Ctrl, Shift, Q, Esc

I've looked for ways MobaXTerm can stop the command and have checked various "Terminal" options, etc.

I've reviewed this page, this page, this page and this page to find something... but all of my searches with relevant keywords haven't turned up anything yet.

If anyone knows the secret to simply killing this command (and maybe other slow conda commands) without restarting my whole session, it would speed up my progress and make my life much easier. Thank you in advance!

答案1

得分: 0

我已找到答案我的问题!

终端中的 Ctrl-C 将发送一个SIGINT(信号中断),用于终止当前运行的进程,我假设不仅仅适用于miniconda,而是对于任何进程都有效。

我在这个网站上找到了更多信息:如何在Linux上终止进程

英文:

I've found the answer to my own question!

Ctrl-C in the terminal will send a SIGINT (signal interrupt) that terminates the current running process for any process I assume, not just miniconda.

I found more information on this site: How to kill a process on Linux

huangapple
  • 本文由 发表于 2023年7月7日 00:30:24
  • 转载请务必保留本文链接:https://go.coder-hub.com/76630867.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定