Dash: ModuleNotFoundError: No module named 'dash'

Created on 27 May 2018  ·  8Comments  ·  Source: plotly/dash

Hi, I am receiving a module not found error when trying to use Dash, even though I have installed all modules per the instructions here. The only modification I made to the instructions was pip3 rather than pip.

When running python3 my_app.py, I receive:

File "my_app.py", line 1, in <module> import dash ModuleNotFoundError: No module named 'dash'

When I run pip3 install dash:

Requirement already satisfied: dash in /usr/local/lib/python3.6/site-packages (0.21.1)

I have checked for duplicate files/folders named dash or dash.py, but don't see any. I have also tried uninstalling everything and re-installing, but I received the same errors. Any help would be much appreciated- I've been googling around for a while and haven't found anything to solve this.

Most helpful comment

@spencerlawrence36 pip3 seems to refer to the system wide pip according to your logs.

Can you try to install dash using python3 -m pip install dash (to use pip for that particular version of Python)?

Otherwise, these commands can also help debugging:

which python3
which pip3

All 8 comments

@spencerlawrence36 - Did you end up figuring this one out?

@chriddyp I did not unfortunately

@spencerlawrence36 Did you use virtualenv?
Activating virtualenv from a different directory could create problems as paths would be different.
Run print(sys.path) to check what locations are scanned for imported libraries.

@spencerlawrence36 pip3 seems to refer to the system wide pip according to your logs.

Can you try to install dash using python3 -m pip install dash (to use pip for that particular version of Python)?

Otherwise, these commands can also help debugging:

which python3
which pip3

OK, update- it seemed to work when I used pip instead of pip3. Not sure
why that is- maybe some underlying problem with Python 3

On Tue, Jul 10, 2018 at 8:27 AM Jeremy Tuloup notifications@github.com
wrote:

@spencerlawrence36 https://github.com/spencerlawrence36 pip3 seems to
refer to the system wide pip according to your logs.

Can you try to install dash using python3 -m pip install dash (to use pip
for that particular version of Python)?

Otherwise, these commands can also help debugging:

which python3
which pip3


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/plotly/dash/issues/261#issuecomment-403864285, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AOXjK0dhciaKQUmY9TiZz8GUUASLWjwcks5uFMftgaJpZM4UPX4f
.

Thanks for the help on this

On Sun, Jul 15, 2018 at 3:55 PM Spencer Lawrence <
[email protected]> wrote:

OK, update- it seemed to work when I used pip instead of pip3. Not sure
why that is- maybe some underlying problem with Python 3

On Tue, Jul 10, 2018 at 8:27 AM Jeremy Tuloup notifications@github.com
wrote:

@spencerlawrence36 https://github.com/spencerlawrence36 pip3 seems to
refer to the system wide pip according to your logs.

Can you try to install dash using python3 -m pip install dash (to use
pip for that particular version of Python)?

Otherwise, these commands can also help debugging:

which python3
which pip3


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/plotly/dash/issues/261#issuecomment-403864285, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AOXjK0dhciaKQUmY9TiZz8GUUASLWjwcks5uFMftgaJpZM4UPX4f
.

Thanks everyone for helping out ❤️

It still doesn't work on my setup. Can anyone please help?

Was this page helpful?
0 / 5 - 0 ratings