Juypter笔记本中的ZSH未识别任何命令

发布于 2025-02-01 01:14:09 字数 137 浏览 1 评论 0原文

我已经确认并在我的本地终端上运行了它,但是由于某种原因,它不会在Juypter笔记本中识别任何命令...

错误的屏幕截图

I have confirmed and ran it on my local terminal but it will not recognize any commands in juypter notebook for some reason...

screenshot of error

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

赏烟花じ飞满天 2025-02-08 01:14:09
  1. 首先,请确认已正确安装了Jupyter。
  pip3 install -upgrade pip
PIP3安装Jupyter
 
  1. 查找Jupyter的安装位置
  pip3显示jupyter
 

您将获得类似于以下的结果

根据位置,我们可以找到Jupyter的位置

 /library/frameworks/python.framework/versions/3.7/bin/
 
  1. 然后将此位置添加到命令搜索的路径中。 (分配时,请注意不要在平等标志的两侧添加空间)
  vim〜/.zshrc(或.bashrc如果bash)
 
  1. 添加以下语句
 导出路径=/library/frameworks/python.framework/versions/3.7/bin/:$ path
 
  1. 然后重新加载相关命令
  source.zshrc
 
  1. 使用Jupyter
  jupyter笔记本
 

希望这对您有帮助

  1. First, please confirm that jupyter has been installed correctly.
pip3 install --upgrade pip
pip3 install jupyter
  1. Find the installation location of jupyter
pip3 show jupyter

You will get a result similar to the following
enter image description here

According to location, we can find the location of jupyter

/Library/Frameworks/Python.framework/Versions/3.7/bin/
  1. Then add this location to the path searched by the command. (Be careful not to add spaces on both sides of the equal sign when assigning)
vim ~/.zshrc (or .bashrc if bash)
  1. Add the following statement
export PATH=/Library/Frameworks/Python.framework/Versions/3.7/bin/:$PATH
  1. Then reload the relevant command
source.zshrc
  1. Use jupyter
jupyter notebook

Hope this helps you

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文