在Windows 7中安装py-bcrypt时编译器错误

Man*_*lue 5 python windows compiler-construction mingw flask

我需要安装瓶模块flask-bcrypt需要py-bcrypt.当我尝试安装它时,发生错误:

C:\Users\Param\Downloads\py-bcrypt-0.3>python setup.py install
running install
running bdist_egg
running egg_info
writing py_bcrypt.egg-info\PKG-INFO
writing top-level names to py_bcrypt.egg-info\top_level.txt
writing dependency_links to py_bcrypt.egg-info\dependency_links.txt
reading manifest file 'py_bcrypt.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'py_bcrypt.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
running build_ext
error: don't know how to compile C/C++ code on platform 'nt' with 'MinGW32' comp
iler
Run Code Online (Sandbox Code Playgroud)

是什么导致了这个问题?

以前,我在我的Windows 7 64位机器上安装了MinGW32.问题是因为MinGW是32位而Windows是64位吗?如果是这样,我该怎么做才能解决这个问题?(如何在我的机器中使用MinGW 64位?)

Dex*_*ter 4

这些库已经编译并可在某处使用。有人已经上传了 Windows 的编译版本。我能够使用这些文件在 Windows 中运行 Flask-bcrypt。

你只需将它放入你的flask/scripts/python 包文件夹中。

Flask subreddit 中给出了答案,其中提供了下载所需库的位置

http://www.reddit.com/r/flask/comments/15q5xj/anyone_have_a_working_version_of_flaskbcrypt_for/