安装iruby gem时出错

编程入门 行业动态 更新时间:2024-10-20 16:34:52
本文介绍了安装iruby gem时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试安装并运行iruby 。 我在 iruby 的终端上运行iruby但我收到:

I am attempting to install and run iruby. I run iruby in the terminal with iruby but I receive:

iruby notebook /Users/jona/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/iruby-0.1.13/lib/iruby/command.rb:38:in ``': No such file or directory - ipython (Errno::ENOENT) from /Users/jona/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/iruby-0.1.13/lib/iruby/command.rb:38:in `check_version' from /Users/jona/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/iruby-0.1.13/lib/iruby/command.rb:46:in `run_ipython' from /Users/jona/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/iruby-0.1.13/lib/iruby/command.rb:18:in `run' from /Users/jona/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/iruby-0.1.13/bin/iruby:6:in `<top (required)>' from /Users/jona/.rbenv/versions/2.0.0-p353/bin/iruby:23:in `load' from /Users/jona/.rbenv/versions/2.0.0-p353/bin/iruby:23:in `<main>'

我已经安装了ipython (我安装了Anaconda,但是当我

I have installed ipython ( I have installed Anaconda, but when i

run conda update conda

conda update ipython

但是说:

command not found: conda

这是一个iruby程序问题吗?

Is this an iruby program issue?

推荐答案

重新发布答案:

问题在于Anaconda ... / bin 目录是不在 $ PATH 上,所以命令 ipython 和 conda 无法找到。

The trouble was that the Anaconda .../bin directory was not on $PATH, so the commands ipython and conda could not be found.

要解决此问题:在主目录中查找名为 .profile 的文件或 .bash_profile 。这些是默认隐藏的,因此您可能需要做一些额外的事情才能看到它们。在您找到的文件中添加一行 PATH =$ HOME / anaconda / bin:$ PATH。然后关闭终端并重新打开它,你应该可以运行ipython和conda。您可以使用命令 echo $ PATH 查看PATH的内容。

To fix this: Look for a file in your home directory called something like .profile or .bash_profile. These are hidden by default, so you may have to do something extra to see them. Add a line to the file you find like PATH="$HOME/anaconda/bin:$PATH". Then close your terminal and reopen it, and you should be able to run ipython and conda. You can use the command echo $PATH to see the contents of PATH.

更多推荐

安装iruby gem时出错

本文发布于:2023-10-15 03:02:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1493047.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:iruby   gem

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!