【问题标题】:itorch creates a python console, not a torch consoleitorch 创建一个 python 控制台,而不是一个 Torch 控制台
【发布时间】:2015-04-23 06:36:07
【问题描述】:

当我调用 itorch 时,我得到的不是 Torch 控制台而是 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]:

我做错了什么?

【问题讨论】:

  • 我有同样的问题(在我的会话中,IPython 是 v3.0.0) - 你解决了这个问题吗?

标签: ipython torch


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2010-11-18
    • 1970-01-01
    • 2017-06-22
    • 1970-01-01
    • 2013-06-13
    • 2011-05-18
    • 1970-01-01
    • 1970-01-01
    • 2014-10-13
    相关资源
    最近更新 更多