Error Installing iruby gem

2019-09-17 03:37发布

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>'

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

run conda update conda

and

conda update ipython

but says:

command not found: conda

Is this an iruby program issue?

1条回答
Viruses.
2楼-- · 2019-09-17 04:11

Reposting as an answer:

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

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.

查看更多
登录 后发表回答