【问题标题】:gendef returning invalid syntax errorgendef 返回无效的语法错误
【发布时间】:2015-08-09 20:48:47
【问题描述】:

我正在尝试在我的 Windows 7 计算机上安装用于机器学习的 Theano。

安装依赖项的最后一个步骤是通过“打开 Python shell 并 cd 到 C:\SciSoft”来“为 GCC 创建链接库”。然后执行:

gendef WinPython-64bit-2.7.9.4\python-2.7.9.amd64\python27.dll
dlltool --dllname python27.dll --def python27.def --output-lib WinPython-
64bit-2.7.9.4\python-2.7.9.amd64\libs\libpython27.a

我试过这样做,但在“WinPython”上突出显示了一个无效的语法错误。我尝试更改目录以更深入并再次运行 gendef ,它也返回了相同的错误。这是来自http://deeplearning.net/software/theano/install_windows.html#install-windows的复制和粘贴作业

【问题讨论】:

  • WinPython-64bit-2.7.9.4 目录是否存在于C:\SciSoft 中?或任何类似的目录,但版本号不同。
  • 嗨丹尼尔,谢谢你的回答,问题实际上是我打开了一个 python GUI shell 而不是从 env.bat 文件创建的那个。不过再次感谢!

标签: installation theano


【解决方案1】:

我还按照链接中的教程安装 Theano。

最后我们需要为 GCC 创建一个链接库。打开 Python shell 并 cd 到 c:\SciSoft”这行可能是错误的; “Python shell”应该修改为“cmd.exe”。

两行脚本不是python脚本,改目录到c:\SciSoft后可以在cmd.exe上成功运行。

【讨论】:

    猜你喜欢
    • 2015-05-24
    • 1970-01-01
    • 2013-04-20
    • 2021-08-21
    • 1970-01-01
    • 2018-05-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多