简体   繁体   English

在 Macbook 上运行 Anaconda 时使用终端命令

[英]Using Terminal Command while Running Anaconda on Macbook

While my Jupyter Notebook is running, the terminal shows that it is saving files periodically.当我的 Jupyter Notebook 正在运行时,终端显示它正在定期保存文件。 How to run "pip install" using command lines in the terminal while the Jupyter Notebook is running?如何在 Jupyter Notebook 运行时在终端中使用命令行运行“pip install”? I believe I need to find a way to get back to the "~ username $:," from which I can type commands.我相信我需要找到一种方法来返回到“~用户名 $:”,我可以从中键入命令。 I tried 'cd/' but it didn't seem to work.我试过 'cd/' 但它似乎没有用。

So far I've been closing out of Anaconda, finishing "pip install", and getting back into Anaconda.到目前为止,我一直在关闭 Anaconda,完成“pip 安装”,然后回到 Anaconda。

It sounds like you are using a unix-type system.听起来您正在使用 unix 类型的系统。 In that case you can在那种情况下你可以

  1. In the jupyter notebook do !pip install <whatever package it is>在 jupyter notebook 中执行!pip install <whatever package it is>
  2. In the terminal window, type ^Z and then bg , then type your pip install command.在终端 window 中,依次键入^Zbg ,然后键入您的pip install命令。
  3. Open another terminal window, and do your pip install .打开另一个终端 window,然后执行pip install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在ubuntu终端上运行python命令时出错 - error while running python command on ubuntu terminal 使用 MacBook 时在 Visual Studio Code 中运行代码时遇到问题 - Trouble running code in Visual Studio Code while using my MacBook 使用PyQt5 GUI在终端中运行命令 - Running a Command in Terminal Using PyQt5 GUI 使用命令终端运行程序时出现问题 - problems running programs using the command terminal IndentationError:使用 opencv 时出现意外缩进(在 Atom 中并在 Macbook zsh 终端中编译) - IndentationError: unexpected indent while using opencv (in Atom and comipiling in Macbook zsh Terminal) 在终端中运行python时使用Argv时出错 - Error using Argv while running python in terminal ktrain,同时在 anaconda 提示符下使用 pip 命令安装它 - ktrain, while installing it by using pip command in anaconda prompt 安装 Anaconda 后终端命令不适用于 Mac - Terminal Command Not Working For Mac After Installing Anaconda 使用python在终端中运行命令行命令 - Running a command-line command in terminal using python 刚刚使用 Anaconda 安装了 Jupyter,但无法使用终端运行它。 说找不到命令 - Just installed Jupyter using Anaconda but can't run it using terminal. Says command not found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM