python - py-bcrypt 安装在 win 7 64 位 python 上

标签 python c gcc compiler-construction module

尝试在 win7 上安装 py-bcrypt。 Python 是 64 位的。第一个错误无法找到 vcvarsall.bat。谷歌了一下得知我需要安装 mingw。现在安装它

C:\tools\python_modules\py-bcrypt-0.2>python setup.py build -c mingw32
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 b
d\temp.win-amd64-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

不知道接下来要做什么。我想我不会使用 bcrypt 并尝试其他方法。还有其他建议吗?

最佳答案

有一个编译版本的 py-bcrypt for windows。您可以访问https://bitbucket.org/alexandrul/py-bcrypt/downloads下载 .exe 文件并安装。

关于python - py-bcrypt 安装在 win 7 64 位 python 上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7096990/

相关文章:

python - Mechanize - 添加到提交后的表单

python - 如何在 Ubuntu 16.04 上使用 Python 3.6 安装 xapian?

python - 在python或c中从/dev/video0读取摄像头输入

c++ - g++ 错误? ( bool 值?0 : 1) returns neither 0 nor 1

c++ - 执行虚拟语句

c++ - ld64.so 存在于 ldd 中,在运行时丢失

python - 如何在Python中将字符串变为大写?

python - Python 类型方法和 Maya 变换节点上的类型函数有什么区别?

c++ - &&条件的执行方向

仅 C++ 前端编译器(将 C++ 转换为 C)