#如果基础镜像默认python缺少sqlite3构建的镜像会无法运行notebook
#需要先用Dokcerfile文件构建镜像，用构建好的镜像运行容器，在容器中另外安装python
apt-get update -y
apt-get install libsqlite3-dev -y
cd /opt
wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz --no-check-certificate
tar -xvf Python-3.6.5.tar.xz
cd Python-3.6.5
./configure --enable-loadable-sqlite-extensions
make
make install
export PATH=/usr/local/Ascend/nnae/latest/fwkacllib/ccec_compiler/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
python3 -m pip install --upgrade pip
pip install jupyter

#查看是否安装上了jupyter-notebook
whereis jupyter-notebook

#将安装好python和jupyter的容器commit成镜像，再以commit后的镜像为基础镜像，用Dockerfile.run构建镜像
