加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

尝试在Windows上安装Python bcrypt的许多问题(x64)

发布时间:2020-12-14 02:19:18 所属栏目:Windows 来源:网络整理
导读:这个问题已经提到了 elsewhere,但是它没有提供可行的解决方案,所以我仍然希望打开一张票. c:UsersmeDesktoptemppy-bcrypt-0.2setup.py install build --compiler=mingw32running installrunning buildrunning build_pyrunning build_extbuilding 'bcryp
这个问题已经提到了 elsewhere,但是它没有提供可行的解决方案,所以我仍然希望打开一张票.

c:UsersmeDesktoptemppy-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:MinGWbingcc.exe -mno-cygwin -mdll -O -Wall -IC:Python27include -IC:Python27PC -c bcrypt/bcrypt_python.c -o buildtemp.win32-2.7Releasebcryptbcrypt_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”,我留下了似乎是一个戈迪结.点和易安装不起作用.我还阅读了一些other文章.

我现在不需要实现bcrypt,所以这不是一个紧急事项,但显然,实施安全密码保护至关重要.

解决方法

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读