itorch创建了一个python控制台,而不是一个火炬控制台

时间:2015-02-21 16:50:34

标签: ipython torch

当我拨打itorch时,我没有火炬控制台,而是ipython控制台:

~$ itorch
Python 2.7.3 (default, Dec 18 2014, 19:10:20)
Type "copyright", "credits" or "license" for more information.

IPython 0.12.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

IPython profile: torch
[IPKernelApp] To connect another client to this kernel, use:
[IPKernelApp] --existing kernel-4469.json --profile torch

In [1]: require 'nn'
  File "<ipython-input-1-d76f3f5020d1>", line 1
    require 'nn'
               ^
SyntaxError: invalid syntax


In [2]: import os

In [3]:

我做错了什么?

1 个答案:

答案 0 :(得分:2)

iTorch支持iPython v2.3或更高版本。请查看所需的依赖项。  你似乎有iPython v 0.1.2,也许这就是你看到这种行为的原因。