Unable to install Brotli part of dash module - Python

56 views
Skip to first unread message

Brendan Smith

unread,
Oct 29, 2022, 1:44:49 PM10/29/22
to Brotli
Hi

I am unable to install Dash on python as the installation process stops at the error received at Brotli installation stage.

Versions:
1. Windows 10
2. Python 3.11

The following steps were completed:

1. pip install dash --> Failed and proceeded to update pip, wheel and setuptools
2. Again performed pip install dash and the execution ends with errors. Below is the complete log
C:\Windows\system32>pip install dash
Collecting dash
  Using cached dash-2.6.2-py3-none-any.whl (9.8 MB)
Collecting Flask>=1.0.4
  Using cached Flask-2.2.2-py3-none-any.whl (101 kB)
Collecting flask-compress
  Using cached Flask_Compress-1.13-py3-none-any.whl (7.9 kB)
Requirement already satisfied: plotly>=5.0.0 in c:\program files\python311\lib\site-packages (from dash) (5.11.0)
Requirement already satisfied: dash-html-components==2.0.0 in c:\program files\python311\lib\site-packages (from dash) (2.0.0)
Requirement already satisfied: dash-core-components==2.0.0 in c:\program files\python311\lib\site-packages (from dash) (2.0.0)
Requirement already satisfied: dash-table==5.0.0 in c:\program files\python311\lib\site-packages (from dash) (5.0.0)
Collecting Werkzeug>=2.2.2
  Using cached Werkzeug-2.2.2-py3-none-any.whl (232 kB)
Collecting Jinja2>=3.0
  Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting itsdangerous>=2.0
  Using cached itsdangerous-2.1.2-py3-none-any.whl (15 kB)
Collecting click>=8.0
  Using cached click-8.1.3-py3-none-any.whl (96 kB)
Requirement already satisfied: tenacity>=6.2.0 in c:\program files\python311\lib\site-packages (from plotly>=5.0.0->dash) (8.1.0)
Collecting brotli
  Using cached Brotli-1.0.9.zip (510 kB)
  Preparing metadata (setup.py) ... done
Collecting colorama
  Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting MarkupSafe>=2.0
  Using cached MarkupSafe-2.1.1-py3-none-any.whl
Building wheels for collected packages: brotli
  Building wheel for brotli (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [11 lines of output]
      C:\Program Files\Python311\Lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'build-base' will not be supported in future versions. Please use the underscore name 'build_base' instead
        warnings.warn(
      running bdist_wheel
      running build
      running build_py
      creating bin
      creating bin\lib.win-amd64-cpython-311
      copying python\brotli.py -> bin\lib.win-amd64-cpython-311
      running build_ext
      building '_brotli' 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/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for brotli
  Running setup.py clean for brotli
Failed to build brotli
Installing collected packages: brotli, MarkupSafe, itsdangerous, colorama, Werkzeug, Jinja2, click, Flask, flask-compress, dash
  Running setup.py install for brotli ... error
  error: subprocess-exited-with-error

  × Running setup.py install for brotli did not run successfully.
  │ exit code: 1
  ╰─> [13 lines of output]
      C:\Program Files\Python311\Lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'build-base' will not be supported in future versions. Please use the underscore name 'build_base' instead
        warnings.warn(
      running install
      C:\Program Files\Python311\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating bin
      creating bin\lib.win-amd64-cpython-311
      copying python\brotli.py -> bin\lib.win-amd64-cpython-311
      running build_ext
      building '_brotli' 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/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> brotli

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Looking for some guidance on this issue - thanks,

Brendan

Reply all
Reply to author
Forward
0 new messages