4
ValueError: invalid version number '2.20.51.20100613'

pycrypto のインストールに問題があります。パッケージ マネージャーを試しました: pip & easy_install が機能しませんでした。「python setup.py install」で手動でインストールしようとすると、上記と同じエラーが表示されます。

こちらの手順に従いましたが、「mingW」gcc、g++、および msys-base (MSYS シェル環境) をインストールした後、pycrypto のインストールに行き詰まりました。

数日間試した後、今何をすべきかよくわかりません。

エラーの完全な出力は次のとおりです。

C:\Users\Denz\Desktop>pip install pycrypto
pycrypto のダウンロード/解凍
  パッケージ pycrypto の setup.py egg_info の実行
収集したパッケージのインストール: pycrypto
  pycrypto の setup.py install の実行
    トレースバック (最新の呼び出しが最後):
      ファイル ""、1 行目、?
      ファイル「C:\Users\Denz\Desktop\build\pycrypto\setup.py」、340行目、?
        core.setup(**kw)
      ファイル「C:\Python24\lib\distutils\core.py」、149 行目、セットアップ中
        dist.run_commands()
      ファイル「C:\Python24\lib\distutils\dist.py」、946 行目、run_commands
        self.run_command(cmd)
      ファイル「C:\Python24\lib\distutils\dist.py」、966 行目、run_command
        cmd_obj.run()
      ファイル "c:\python24\lib\site-packages\distribute-0.6.14-py2.4.egg\setuptools
\command\install.py"、53 行目、実行中
        return _install.run(self)
      ファイル「C:\Python24\lib\distutils\command\install.py」、506 行目、実行中
        self.run_command('ビルド')
      ファイル「C:\Python24\lib\distutils\cmd.py」、333 行目、run_command
        self.distribution.run_command(コマンド)
      ファイル「C:\Python24\lib\distutils\dist.py」、966 行目、run_command
        cmd_obj.run()
      ファイル「C:\Python24\lib\distutils\command\build.py」、112 行目、実行中
        self.run_command(cmd_name)
      ファイル「C:\Python24\lib\distutils\cmd.py」、333 行目、run_command
        self.distribution.run_command(コマンド)
      ファイル「C:\Python24\lib\distutils\dist.py」、966 行目、run_command
        cmd_obj.run()
      ファイル「C:\Python24\lib\distutils\command\build_ext.py」、253 行目、実行中
        force=self.force)
      ファイル「C:\Python24\lib\distutils\ccompiler.py」、1177 行目、new_compiler
        return klass (なし、dry_run、force)init
      のファイル「C:\Python24\lib\distutils\cygwinccompiler.py」、292 行目

CygwinCCompiler.__init__ (self, verbose, dry_run, force) File "C:\Python24\lib\distutils\cygwinccompiler.py", line 83, in __init__ self.gcc_version, self.ld_version, self.dllwrap_version = \ File "C:\Python24\lib\distutils\cygwinccompiler.py", line 424, in get_versions ld_version = StrictVersion(result.group(1)) File "C:\Python24\lib\distutils\version.py", line 40, in __init__ self.parse(vstring) File "C:\Python24\lib\distutils\version.py", line 107, in parse raise ValueError, "invalid version number '%s'" % vstring ValueError: invalid version number '2.20.51.20100613'

4

1 に答える 1

2

このページで動作するWindowsバイナリを入手できます。

于 2011-02-07T12:08:17.633 に答える