【问题标题】:Microsoft C++ Build tool required to install fabric - Python安装结构所需的 Microsoft C++ 构建工具 - Python
【发布时间】:2020-09-22 08:57:57
【问题描述】:

我正在尝试通过 pip install fabric 安装结构,以便在服务器上部署烧瓶应用程序。

我有以下错误:

  ERROR: Command errored out with exit status 1:
   command: 'c:\users\alex\appdata\local\programs\python\python38-32\python.exe' 'c:\users\alex\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_proces
s.py' build_wheel 'C:\Users\Alex\AppData\Local\Temp\tmp5bslt539'
       cwd: C:\Users\Alex\AppData\Local\Temp\pip-install-yyi3arer\bcrypt


 [...]
      building '_bcrypt' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      ----------------------------------------
      ERROR: Failed building wheel for bcrypt
      Running setup.py clean for bcrypt
    Failed to build bcrypt
    ERROR: Could not build wheels for bcrypt which use PEP 517 and cannot be installed directly
    WARNING: You are using pip version 19.2.3, however version 20.2.3 is available.
    You should consider upgrading via the 'python -m pip install --upgrade pip' command.
    
    C:\Users\Alex\Dropbox\PythonDev\Injonction -Contestation>pip install bcrypt
    Collecting bcrypt
      Using cached https://files.pythonhosted.org/packages/d8/ba/21c475ead997ee21502d30f76fd93ad8d5858d19a3fad7cd153de698c4dd/bcrypt-3.2.0.tar.gz
      Installing build dependencies ... done
      Getting requirements to build wheel ... done
        Preparing wheel metadata ... done
    Requirement already satisfied: six>=1.4.1 in c:\users\alex\appdata\local\programs\python\python38-32\lib\site-packages (from bcrypt) (1.15.0)
    Collecting cffi>=1.1 (from bcrypt)
      Using cached https://files.pythonhosted.org/packages/51/3b/d171b2b1cecacd53860ebe77222d3987809a9c1f6c3d7d38f976314bc686/cffi-1.14.3-cp38-cp38-win32.whl
    Collecting pycparser (from cffi>=1.1->bcrypt)
      Using cached https://files.pythonhosted.org/packages/ae/e7/d9c3a176ca4b02024debf82342dab36efadfc5776f9c8db077e8f6e71821/pycparser-2.20-py2.py3-none-any.whl
    Building wheels for collected packages: bcrypt
      Building wheel for bcrypt (PEP 517) ... error
      ERROR: Command errored out with exit status 1:
       command: 'c:\users\alex\appdata\local\programs\python\python38-32\python.exe' 'c:\users\alex\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_proces
    s.py' build_wheel 'C:\Users\Alex\AppData\Local\Temp\tmpzn6kvwdf'
           cwd: C:\Users\Alex\AppData\Local\Temp\pip-install-cw5hz6jn\bcrypt
      [...}
      building '_bcrypt' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      ----------------------------------------
      ERROR: Failed building wheel for bcrypt
      Running setup.py clean for bcrypt
    Failed to build bcrypt
    ERROR: Could not build wheels for bcrypt which use PEP 517 and cannot be installed directly

我尝试按照要求安装 Microsoft C++ Build Tool。

在我的电脑上,我安装了以下内容:

我该如何解决这种情况?

【问题讨论】:

    标签: python python-3.x flask visual-c++ fabric


    【解决方案1】:

    我在安装 Apache-Airflow 时遇到了确切的问题,在微软论坛下方的谷歌上搜索后。

    https://answers.microsoft.com/en-us/windows/forum/all/microsoft-visual-c-140/6f0726e2-6c32-4719-9fe5-aa68b5ad8e6d

    按照此处提到的步骤操作。 您需要安装 Microsoft 构建工具,并且在其中,您需要安装最新的 Microsoft Visual C++ 发行版和 windows SDK。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-03-23
      • 2022-01-05
      • 2016-10-13
      • 2011-12-27
      • 1970-01-01
      • 2015-09-20
      • 1970-01-01
      • 2017-09-10
      相关资源
      最近更新 更多