gpt4 book ai didi

python - 在 django 中安装此库 "pip install bcrypt"时出错

转载 作者:行者123 更新时间:2023-12-04 15:36:37 26 4
gpt4 key购买 nike

我在 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再次输入以上命令

关于python - 在 django 中安装此库 "pip install bcrypt"时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59547543/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com