python - 尝试在 Windows (x64) 上安装 Python bcrypt 时出现的大量问题

标签 python windows windows-7 windows64

这个问题已经提到了elsewhere ,但它没有提供有效的解决方案,所以我仍然想保留一张票。

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” 之后,我留下了一个看起来像戈尔迪结的东西。 pipeasy-install 不起作用。我也读过一些 other文章。

目前我不需要实现 bcrypt,所以这不是一件紧迫的事情,但显然,实现安全的密码保护至关重要。

最佳答案

我找到的最简单的方法是下载并安装 Windows 二进制文件,而不是尝试自己编译。 This guy has some on bitbucket

关于python - 尝试在 Windows (x64) 上安装 Python bcrypt 时出现的大量问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7221142/

相关文章:

windows - 在 EMC Celerra 上的 Linux 和 Windows 之间共享的文件设置权限

c++ - Windows 上 Qt 中的无边框窗口支持 native 功能 : aero snap, DWM 调整大小和最小化

css - 适用于 Windows 的 LESS 客户端

python - 为什么当我在运行程序后尝试打开 CSV 文件时,Python CSV 模块会将 CSV 文件设置为只读?

python - Python 中从嵌套元组到二项式树的边缘

python - 如何在 networkx 中为图中的节点添加标签?

windows-7 - 当我的笔记本电脑在 Windows 7 中进入休眠状态时关闭正在运行的应用程序(合上盖子或按下 sleep 按钮)

python - Pandas unstack()和pivot() : MemoryError

windows - 在现有的 vim session 中打开文件 (Cygwin/mintty)

c# - 在 Win 7 RC1 上从 IIS 获取目录条目时出错