我正在尝试安装并运行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时出错
发布评论