我正在尝试为Windows 7上安装的Jython / Python Django应用程序安装一些模块。当我尝试在下载后安装它们(导航到目录,从命令提示符输入jython setup.py install)我得到以下错误(下面的错误是针对Pycrypto-2.6:
running install
running build
running build_py
running build_ext
running build_configure
'chmod' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
File "setup.py", line 456, in <module>
core.setup(**kw)
File "C:\jython2.5.3\Lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "C:\jython2.5.3\Lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "C:\jython2.5.3\Lib\distutils\dist.py", line 974, in run_commands
self.run_command(cmd)
File "C:\jython2.5.3\Lib\distutils\dist.py", line 994, in run_command
cmd_obj.run()
File "C:\jython2.5.3\Lib\distutils\command\install.py", line 513, in run
self.run_command('build')
File "C:\jython2.5.3\Lib\distutils\cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "C:\jython2.5.3\Lib\distutils\dist.py", line 994, in run_command
cmd_obj.run()
File "C:\jython2.5.3\Lib\distutils\command\build.py", line 112, in run
self.run_command(cmd_name)
File "C:\jython2.5.3\Lib\distutils\cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "C:\jython2.5.3\Lib\distutils\dist.py", line 994, in run_command
cmd_obj.run()
File "setup.py", line 251, in run
self.run_command(cmd_name)
File "C:\jython2.5.3\Lib\distutils\cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "C:\jython2.5.3\Lib\distutils\dist.py", line 994, in run_command
cmd_obj.run()
File "setup.py", line 273, in run
raise RuntimeError("chmod error")
RuntimeError: chmod error
我进入了setup.py文件并注释掉了chmod行。我重新运行它并在“sh configure”上出错。我刚停在那里,因为我不知道如何调用此模块中的configure命令。
显然,这与我试图在Windows而不是Linux上安装它有关。但是使用Jython我无法使用easy_install安装它。而pip将无法与Jython一起使用。所以我不知道如何自己安装这个模块。
由于