C:\ProgramData\Anaconda3\envs\nse1\python.exe C:/NSE/scripts/dash.py
Traceback (most recent call last):
File "C:/NSE/scripts/dash.py", line 1, in <module>
import dash
File "C:\NSE\scripts\dash.py", line 2, in <module>
import dash_table
File "C:\ProgramData\Anaconda3\envs\nse1\lib\site-packages\dash_table\__init__.py", line 10, in <module>
from ._imports_ import *
File "C:\ProgramData\Anaconda3\envs\nse1\lib\site-packages\dash_table\_imports_.py", line 1, in <module>
from .DataTable import DataTable
File "C:\ProgramData\Anaconda3\envs\nse1\lib\site-packages\dash_table\DataTable.py", line 3, in <module>
from dash.development.base_component import Component, _explicitize_args
ModuleNotFoundError: No module named 'dash.development'; 'dash' is not a package
Process finished with exit code 1
Pl help
Thanks & Regards
Hi @Parag welcome to the forum! It looks like you have incompatible versions of dash and dash_table, With recent versions of Dash, when you install the dash package it also installs other packages (dcc etc.), including dash_table. Could you maybe uninstall dash_table and dash, reinstall dash, and see if it works?
C:\ProgramData\Anaconda3\envs\nse1\python.exe C:/NSE/scripts/dash.py
Traceback (most recent call last):
File "C:/NSE/scripts/dash.py", line 1, in <module>
import dash
File "C:\NSE\scripts\dash.py", line 2, in <module>
import dash_table
File "C:\ProgramData\Anaconda3\envs\nse1\lib\site-packages\dash_table\__init__.py", line 10, in <module>
from ._imports_ import *
File "C:\ProgramData\Anaconda3\envs\nse1\lib\site-packages\dash_table\_imports_.py", line 1, in <module>
from .DataTable import DataTable
File "C:\ProgramData\Anaconda3\envs\nse1\lib\site-packages\dash_table\DataTable.py", line 3, in <module>
from dash.development.base_component import Component, _explicitize_args
ModuleNotFoundError: No module named 'dash.development'; 'dash' is not a package
As you can see from the list of package versions dash 1.4.1 is used, not 1.8.0. Maybe you need to pip uninstall dash several times in a row to be sure that all versions have been uninstalled (maybe do the same with conda if you have been using both conda and pip), and also make sure to uninstall dash_table, dash-core-components, dash-renderer and dash-html-components. Installing dash 1.8.0 should install all packages, but you first need to uninstall all the old versions (pip will display an error when asking to remove a package which is not installed, so this is one way to know that the uninstall was complete).