[英]Error Installing iruby gem
I am attempting to install and run iruby . 我正在尝试安装和运行iruby 。 I run iruby in the terminal with
iruby
but I receive: 我在终端中使用
iruby
运行iruby,但收到以下消息:
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 我已经安装了ipython (我已经安装了Anaconda,但是当我
run conda update conda
and 和
conda update ipython
but says: 但说:
command not found: conda
Is this an iruby program issue? 这是iruby计划的问题吗?
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. 麻烦的是,蟒蛇
.../bin
目录是不是$PATH
,所以命令ipython
和conda
找不到。
To fix this: Look for a file in your home directory called something like .profile
or .bash_profile
. 解决此问题的方法:在主目录中查找一个名为
.profile
或.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"
. 在找到的文件中添加一行,例如
PATH="$HOME/anaconda/bin:$PATH"
。 Then close your terminal and reopen it, and you should be able to run ipython and conda. 然后关闭您的终端并重新打开它,您应该能够运行ipython和conda。 You can use the command
echo $PATH
to see the contents of PATH. 您可以使用命令
echo $PATH
查看echo $PATH
的内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.