這個問題已被提及elsewhere,但它沒有提供可行的解決方案,所以我仍然希望打開一張票。試圖在Windows上安裝Python bcrypt的許多問題(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,所以這不是緊急事件,但顯然,實施安全密碼保護至關重要。