この問題は、elsewhereと言われていますが、解決策が提供されていないため、チケットを開いたままにしておきます。Windows(x64)にPython bcryptをインストールしようとすると、多くの問題が発生する
c:\Users\me\Desktop\temp\py-bcrypt-0.2>setup.py install build --compiler=min gw32 running install running build running build_py running build_ext building 'bcrypt._bcrypt' extension C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python27\include -IC:\Python27\PC -c bcrypt/bcrypt_python.c -o build\temp.win32-2.7\Release\bcrypt\bcrypt_python.o bcrypt/bcrypt_python.c:29:26: error: expected declaration specifiers or '...' before 'u_int8_t' bcrypt/bcrypt_python.c:29:38: error: expected declaration specifiers or '...' before 'u_int16_t' bcrypt/bcrypt_python.c:29:49: error: expected declaration specifiers or '...' before 'u_int8_t' bcrypt/bcrypt_python.c: In function 'bcrypt_encode_salt': bcrypt/bcrypt_python.c:56:2: error: too many arguments to function 'encode_salt' bcrypt/bcrypt_python.c:29:6: note: declared here error: command 'gcc' failed with exit status 1
これは、初期“error: Setup script exited with error: Unable to find vcvarsall.bat”を退治した後、私はGordicの結び目のように思える何が残っていています。 pip
およびeasy-install
は機能しません。私はotherの記事も読んでいます。
私は現時点でbcryptを実装する必要はないので、緊急の問題ではありませんが、明らかに安全なパスワード保護を実装することが不可欠です。あなたがにMinGW64を使用している、あなたはbcrypt.c、bcrypt_python.cとpybc_blf.hにifdefsに_WIN32に
を_MSC_VERを変更する必要があります想定