安装iruby gem时出错 [英] Error Installing iruby gem

查看:259
本文介绍了安装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时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆