Black Lives Matter. Please consider donating to Black Girls Code today.

How to remove dash from macOS 10.15.1?

Hey there,

I’ve got dash installed on my macOS at the location: /bin/dash but I’d like to delete it from there as pip3 can’t update it at that location. When I open iPython and print out:

In [1]: import dash_core_components

In [2]: print(dash_core_components.__version__)

1.5.0

I get version 1.5.0. When I try to install dash using pip3, it gets installed in /usr/local/lib/python3.7/site-packages:

~ % pip3 install dash

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

Requirement already satisfied: dash-html-components==1.0.1 in /usr/local/lib/python3.7/site-packages (from dash) (1.0.1)

Requirement already satisfied: flask-compress in /usr/local/lib/python3.7/site-packages (from dash) (1.4.0)

Requirement already satisfied: dash-core-components==1.5.0 in /usr/local/lib/python3.7/site-packages (from dash) (1.5.0)

Requirement already satisfied: dash-table==4.5.0 in /usr/local/lib/python3.7/site-packages (from dash) (4.5.0)

Requirement already satisfied: plotly in /usr/local/lib/python3.7/site-packages (from dash) (4.3.0)

Requirement already satisfied: dash-renderer==1.2.0 in /usr/local/lib/python3.7/site-packages (from dash) (1.2.0)

Requirement already satisfied: Flask>=1.0.2 in /usr/local/lib/python3.7/site-packages (from dash) (1.1.1)

Requirement already satisfied: future in /usr/local/lib/python3.7/site-packages (from dash) (0.18.2)

Requirement already satisfied: six in /usr/local/lib/python3.7/site-packages (from plotly->dash) (1.13.0)

Requirement already satisfied: retrying>=1.3.3 in /usr/local/lib/python3.7/site-packages (from plotly->dash) (1.3.3)

Requirement already satisfied: click>=5.1 in /usr/local/lib/python3.7/site-packages (from Flask>=1.0.2->dash) (7.0)

Requirement already satisfied: itsdangerous>=0.24 in /usr/local/lib/python3.7/site-packages (from Flask>=1.0.2->dash) (1.1.0)

Requirement already satisfied: Werkzeug>=0.15 in /usr/local/lib/python3.7/site-packages (from Flask>=1.0.2->dash) (0.16.0)

Requirement already satisfied: Jinja2>=2.10.1 in /usr/local/lib/python3.7/site-packages (from Flask>=1.0.2->dash) (2.10.3)

Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python3.7/site-packages (from Jinja2>=2.10.1->Flask>=1.0.2->dash) (1.1.1)

I am trying to delete dash from /bin/bash - what’s the best way to do that? Can I just do rm -rf ?

pip uninstall dash or pip3 uninstall dash doesn’t work?

Thanks for the suggestion!

Doing pip3 uninstall dash only removes it from /usr/local/lib/python3.7/site-packages/.

Running it again results in: WARNING: Skipping dash as it is not installed.

Running which dash results in /bin/dash

Could this be an issue related to operating systems? Before Catalina (10.15), packages might’ve installed in /bin/ but after, the location for packages changed.

Maybe this dash executable is something else than plotly Dash, I don’t think there is a Dash executable. Can you do man dash to check? On my linux installation /bin/dash is a type of shell.

Aha! Right you are! That was not a dash executable, but a type of shell as well.

Additionally, I also realized that doing dash.__version__ does actually produce 1.6.0, but dash-core-components is still at 1.5.0 (https://github.com/plotly/dash-core-components/blob/master/CHANGELOG.md)

tl;dr: I mistakenly linked two unrelated issues together.

Thanks for the help! Consider this issue closed.