2011-08-28 17 views
5

Bu sorun, elsewhere numaralı belgeden bahsedilmiştir, ancak çalışan bir çözüm sunmamaktadır, dolayısıyla bir bileti açık tutmak isterim.Windows (x64) üzerinde Python bcrypt'i yüklemeye çalışırken çok sayıda sorun (x64)

 
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 

Bu ilk “error: Setup script exited with error: Unable to find vcvarsall.bat” kurtulmak sonra, bir Gordic düğüm gibi görünüyor ile kaldım edilir. pip ve easy-install çalışmıyor. Ayrıca bir dizi other makalesini okudum.

Şu anda bcrypt uygulamasını uygulamak zorunda değilim, bu yüzden acil bir konu değil, ancak güvenli bir parola koruması uygulamak çok önemlidir.

cevap

0

sen mingw64 kullandığınız farzedelim, o bcrypt.c, bcrypt_python.c ve pybc_blf.h içine ifdefs üzerinde _WIN32 içinde _MSC_VER değişmelidir

(Ben de diğer soruyu cevapladı ettik)

İlgili konular