Installation gendef返回无效语法错误

Installation gendef返回无效语法错误,installation,theano,Installation,Theano,我正在尝试在我的Windows 7计算机上安装Theano for machine learning 安装依赖项的最后一个步骤是通过“将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 WinPytho

我正在尝试在我的Windows 7计算机上安装Theano for machine learning

安装依赖项的最后一个步骤是通过“将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,但它也返回了相同的错误。这是一个从

复制粘贴的作业,我还按照链接上的教程安装了Theano

“最后,我们需要为GCC创建一个链接库。打开pythonshell和cd到c:\SciSoft”这句话可能是一个错误;“Python外壳”应修改为“cmd.exe”


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

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