2011-08-28 12 views
5

पर पाइथन बीक्रिप्ट स्थापित करने की कोशिश करने वाली कई समस्याएं इस समस्या का उल्लेख elsewhere है, लेकिन यह एक कार्य समाधान प्रदान नहीं करता है, इसलिए मैं अभी भी टिकट खोलना चाहता हूं।विंडोज़ (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 

यह प्रारंभिक “error: Setup script exited with error: Unable to find vcvarsall.bat” से छुटकारा पाने के बाद, मैं क्या एक Gordic गाँठ की तरह लगता है के साथ छोड़ दिया हूँ है। pip और easy-install काम नहीं करते हैं। मैंने कई other लेख भी पढ़े हैं।

मुझे इस समय bcrypt को लागू करने की आवश्यकता नहीं है, इसलिए यह एक जरूरी मामला नहीं है, लेकिन जाहिर है, एक सुरक्षित पासवर्ड सुरक्षा लागू करना महत्वपूर्ण है।

उत्तर

0

आप mingw64 प्रयोग कर रहे हैं मान, आप _MSC_VER _WIN32 में ifdefs पर bcrypt.c, bcrypt_python.c और pybc_blf.h में बदलना चाहिए

(मैं भी अन्य प्रश्न उत्तर दे दिया)

1

सरलतम जिस तरह से मैंने पाया कि खुद को संकलित करने की कोशिश करने के बजाए विंडोज़ बाइनरी डाउनलोड और स्थापित करना था। This guy has some on bitbucket