I'm following the tutorial on using Dash and trying the sample code found here: https://dash.plotly.com/layout
After installing dash and running the code, I get the following error message in the traceback:
Traceback (most recent call last):
File "app_example.py", line 7, in <module>
import dash
File "C:\Users\lizsc\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\dash\__init__.py", line 1, in <module>
from .dash import Dash, no_update # noqa: F401
File "C:\Users\lizsc\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\dash\dash.py", line 18, in <module>
from flask_compress import Compress
File "C:\Users\lizsc\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\flask_compress.py", line 10, in <module>
import brotli
File "C:\Users\lizsc\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\brotli.py", line 8, in <module>
import _brotli
ImportError: DLL load failed while importing _brotli: The specified module could not be found.
I'm using Windows 10, Python 3.8.5. Here are the fixes I've tried so far based on web search result recommendations:
I definitely consider myself a novice, so any guidance would be appreciated!
In my case helped installing both vc_redist
:
x86: vc_redist.x86.exe
x64: vc_redist.x64.exe
from here https://support.microsoft.com/en-gb/help/2977003/the-latest-supported-visual-c-downloads
Additionally make sure that you updated Python/Windows and other software to newest versions and restarted machine.
Tested on Windows 10 Pro, Python 3.8.5, PyCharm 2020.2 .
In my case (windows 10 pro), I installed 'vc_redist.x64.exe'. you can click here for link to try for your device
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With