0

我正在尝试为 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”上出错。我只是停在那里,因为我不知道如何调用此模块中的配置命令。

显然,这与我试图在 Windows 而不是 Linux 上安装它有关。但是对于 Jython,我无法使用 easy_install 安装它。而且 pip 不适用于 Jython。所以我不知道如何自己安装这个模块。

谢谢

4

0 回答 0