Skip to content

Commit ce287dc

Browse files
authored
install mysqldb in jupyter notebook (#3037)
1 parent 463a08d commit ce287dc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker/jupyter/install-jupyter.sh

+5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ wget -q -P /etc/apk/keys/ http://cdn.sqlflow.tech/alpine/sqlflow-5ef80180.rsa.pu
2525
apk add py3-pandas-1.0.3-r0.apk && rm py3-pandas-1.0.3-r0.apk
2626
# Dependencies for jupyterhub
2727
apk add py3-cryptography py3-ruamel.yaml.clib py3-requests
28+
# Install mysqlclient so that user can use Python to import data into MySQL.
29+
apk add --no-cache mariadb-connector-c-dev
30+
apk add --no-cache --virtual .build-deps build-base mariadb-dev
31+
pip install mysqlclient
32+
apk del .build-deps
2833

2934
pip -q install \
3035
jupyterhub==1.1.0 \

0 commit comments

Comments
 (0)