安装结构所需的 Microsoft C++ 构建工具 - Python
Microsoft C++ Build tool required to install fabric - Python
我正在尝试通过 pip install fabric 安装 fabric,以便在服务器上部署 flask 应用程序。
我有以下错误:
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。
在我的电脑上安装了以下软件:
我该如何解决这种情况?
在 Microsoft 论坛下方的 google 上搜索后,我在安装 Apache-Airflow 时遇到了确切的问题。
按照此处提到的步骤进行操作。
您需要安装 Microsoft 构建工具,并在其中安装最新的 Microsoft Visual C++ 发行版和 windows SDK。
我正在尝试通过 pip install fabric 安装 fabric,以便在服务器上部署 flask 应用程序。
我有以下错误:
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。
在我的电脑上安装了以下软件:
我该如何解决这种情况?
在 Microsoft 论坛下方的 google 上搜索后,我在安装 Apache-Airflow 时遇到了确切的问题。
按照此处提到的步骤进行操作。 您需要安装 Microsoft 构建工具,并在其中安装最新的 Microsoft Visual C++ 发行版和 windows SDK。