在 django 中安装此库“pip install bcrypt”时出错

Error During installing this library " pip install bcrypt" in django

我在 Django 中安装 bcrypt 时出错

Command "python setup.py egg_info" failed with error code 1 in C:\Users\Hassan\AppData\Local\Temp\pip-install-w128k6kc\cffi\

  ----------------------------------------
Command "C:\Users\Hassan\PycharmProjects\django_level_5\venv\Scripts\python.exe

C:\Users\Hassan\PycharmProjects\django_level_5\venv\lib\site-packages\pip-19.0.3-py 3.8.egg\pip install --ignore-installed --no-user --prefix C:\Users\Hassan\AppData\Local\Temp\pip-build-env-ky7v9nxx\overlay --no-warn-script-location --no-binary : none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.8.0 wheel "cffi>=1.1; python_implementation != 'PyPy'"" failed with error code 1 in None

应用这三个命令

pip uninstall  bcrypt cffi pycparser
pip install --user --upgrade cffi
pip install --user --upgrade bcrypt

如果显示此错误

microsoft visual c++ 14.0 is required

那么你必须在安装后下载vs_buildtools 再次输入以上命令