davidADSP / GDL_code

The official code repository for examples in the O'Reilly book 'Generative Deep Learning'

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error running 03_01_autoencoder_train notebook

CloudaYolla opened this issue · comments

Hi,

I'm running this notebook on AWS SageMaker EC2, with tensorflow_p36 kernel. Unfortunately, I couldn't get any notebook to work. Could you pls. help? Unlike other OReilly books, I must say I found the instructions on how to run the notebooks a litte less documented for newbies. Thank you for your help.

See error from 03_01 notebook:

Collecting git+https://www.github.com/keras-team/keras-contrib.git (from -r requirements.txt (line 29))
  Cloning https://www.github.com/keras-team/keras-contrib.git to /tmp/pip-req-build-yahwxjum
  Running command git clone -q https://www.github.com/keras-team/keras-contrib.git /tmp/pip-req-build-yahwxjum
Collecting absl-py==0.7.0
  Downloading absl-py-0.7.0.tar.gz (96 kB)
     |████████████████████████████████| 96 kB 4.8 MB/s  eta 0:00:01
Collecting appnope==0.1.0
  Downloading appnope-0.1.0-py2.py3-none-any.whl (4.0 kB)
Collecting astor==0.7.1
  Downloading astor-0.7.1-py2.py3-none-any.whl (27 kB)
Requirement already satisfied: backcall==0.1.0 in /home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages (from -r requirements.txt (line 4)) (0.1.0)
Collecting bleach==3.1.0
  Downloading bleach-3.1.0-py2.py3-none-any.whl (157 kB)
     |████████████████████████████████| 157 kB 17.6 MB/s eta 0:00:01
Collecting cloudpickle==0.8.0
  Downloading cloudpickle-0.8.0-py2.py3-none-any.whl (16 kB)
Requirement already satisfied: cycler==0.10.0 in /home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages (from -r requirements.txt (line 7)) (0.10.0)
Collecting dask==1.1.1
  Downloading dask-1.1.1-py2.py3-none-any.whl (701 kB)
     |████████████████████████████████| 701 kB 25.6 MB/s eta 0:00:01
Collecting decorator==4.3.2
  Downloading decorator-4.3.2-py2.py3-none-any.whl (9.1 kB)
Collecting defusedxml==0.5.0
  Downloading defusedxml-0.5.0-py2.py3-none-any.whl (33 kB)
Requirement already satisfied: entrypoints==0.3 in /home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages (from -r requirements.txt (line 11)) (0.3)
Requirement already satisfied: gast==0.2.2 in /home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages (from -r requirements.txt (line 12)) (0.2.2)
Collecting grpcio==1.18.0
  Downloading grpcio-1.18.0-cp36-cp36m-manylinux1_x86_64.whl (10.6 MB)
     |████████████████████████████████| 10.6 MB 48.1 MB/s eta 0:00:01
Collecting h5py==2.9.0
  Downloading h5py-2.9.0-cp36-cp36m-manylinux1_x86_64.whl (2.8 MB)
     |████████████████████████████████| 2.8 MB 43.7 MB/s eta 0:00:01
Collecting ipykernel==5.1.0
  Downloading ipykernel-5.1.0-py3-none-any.whl (113 kB)
     |████████████████████████████████| 113 kB 67.0 MB/s eta 0:00:01
Collecting ipython==7.3.0
  Downloading ipython-7.3.0-py3-none-any.whl (768 kB)
     |████████████████████████████████| 768 kB 39.3 MB/s eta 0:00:01
Requirement already satisfied: ipython-genutils==0.2.0 in /home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages (from -r requirements.txt (line 17)) (0.2.0)
Collecting ipywidgets==7.4.2
  Downloading ipywidgets-7.4.2-py2.py3-none-any.whl (111 kB)
     |████████████████████████████████| 111 kB 63.7 MB/s eta 0:00:01
Collecting jedi==0.13.2
  Downloading jedi-0.13.2-py2.py3-none-any.whl (177 kB)
     |████████████████████████████████| 177 kB 66.4 MB/s eta 0:00:01
Collecting Jinja2==2.10
  Downloading Jinja2-2.10-py2.py3-none-any.whl (126 kB)
     |████████████████████████████████| 126 kB 66.5 MB/s eta 0:00:01
Collecting jsonschema==2.6.0
  Downloading jsonschema-2.6.0-py2.py3-none-any.whl (39 kB)
Requirement already satisfied: jupyter==1.0.0 in /home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages (from -r requirements.txt (line 22)) (1.0.0)
Collecting jupyter-client==5.2.4
  Downloading jupyter_client-5.2.4-py2.py3-none-any.whl (89 kB)
     |████████████████████████████████| 89 kB 13.4 MB/s eta 0:00:01
Collecting jupyter-console==6.0.0
  Downloading jupyter_console-6.0.0-py2.py3-none-any.whl (21 kB)
Collecting jupyter-core==4.4.0
  Downloading jupyter_core-4.4.0-py2.py3-none-any.whl (126 kB)
     |████████████████████████████████| 126 kB 63.7 MB/s eta 0:00:01
Requirement already satisfied: Keras==2.2.4 in /home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages (from -r requirements.txt (line 26)) (2.2.4)
Collecting Keras-Applications==1.0.7
  Downloading Keras_Applications-1.0.7-py2.py3-none-any.whl (51 kB)
     |████████████████████████████████| 51 kB 936 kB/s  eta 0:00:01
Collecting Keras-Preprocessing==1.0.9
  Downloading Keras_Preprocessing-1.0.9-py2.py3-none-any.whl (59 kB)
     |████████████████████████████████| 59 kB 10.7 MB/s eta 0:00:01
Collecting kiwisolver==1.0.1
  Downloading kiwisolver-1.0.1-cp36-cp36m-manylinux1_x86_64.whl (949 kB)
     |████████████████████████████████| 949 kB 43.3 MB/s eta 0:00:01
Collecting Markdown==3.0.1
  Downloading Markdown-3.0.1-py2.py3-none-any.whl (89 kB)
     |████████████████████████████████| 89 kB 12.6 MB/s eta 0:00:01
Collecting MarkupSafe==1.1.0
  Downloading MarkupSafe-1.1.0-cp36-cp36m-manylinux1_x86_64.whl (27 kB)
Collecting matplotlib==3.0.2
  Downloading matplotlib-3.0.2-cp36-cp36m-manylinux1_x86_64.whl (12.9 MB)
     |████████████████████████████████| 12.9 MB 44.9 MB/s eta 0:00:01    |██████████████████▌             | 7.5 MB 44.9 MB/s eta 0:00:01
Requirement already satisfied: mistune==0.8.4 in /home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages (from -r requirements.txt (line 34)) (0.8.4)
Collecting music21==5.5.0
  Downloading music21-5.5.0.tar.gz (18.5 MB)
     |████████████████████████████████| 18.5 MB 42.7 MB/s eta 0:00:01
Collecting nbconvert==5.4.1
  Downloading nbconvert-5.4.1-py2.py3-none-any.whl (407 kB)
     |████████████████████████████████| 407 kB 56.6 MB/s eta 0:00:01
Collecting nbformat==4.4.0
  Downloading nbformat-4.4.0-py2.py3-none-any.whl (155 kB)
     |████████████████████████████████| 155 kB 66.4 MB/s eta 0:00:01
Collecting networkx==2.2
  Downloading networkx-2.2.zip (1.7 MB)
     |████████████████████████████████| 1.7 MB 52.8 MB/s eta 0:00:01
Collecting notebook==5.7.4
  Downloading notebook-5.7.4-py2.py3-none-any.whl (9.0 MB)
     |████████████████████████████████| 9.0 MB 15.4 MB/s eta 0:00:01
Collecting numpy==1.16.1
  Downloading numpy-1.16.1-cp36-cp36m-manylinux1_x86_64.whl (17.3 MB)
     |████████████████████████████████| 17.3 MB 18.8 MB/s eta 0:00:01
Collecting pandas==0.24.2
  Downloading pandas-0.24.2-cp36-cp36m-manylinux1_x86_64.whl (10.1 MB)
     |████████████████████████████████| 10.1 MB 50.7 MB/s eta 0:00:01
Requirement already satisfied: pandocfilters==1.4.2 in /home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages (from -r requirements.txt (line 42)) (1.4.2)
Collecting parso==0.3.4
  Downloading parso-0.3.4-py2.py3-none-any.whl (93 kB)
     |████████████████████████████████| 93 kB 2.6 MB/s  eta 0:00:01
Collecting pexpect==4.6.0
  Downloading pexpect-4.6.0-py2.py3-none-any.whl (57 kB)
     |████████████████████████████████| 57 kB 9.6 MB/s  eta 0:00:01
Requirement already satisfied: pickleshare==0.7.5 in /home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages (from -r requirements.txt (line 45)) (0.7.5)
Collecting Pillow==5.4.1
  Downloading Pillow-5.4.1-cp36-cp36m-manylinux1_x86_64.whl (2.0 MB)
     |████████████████████████████████| 2.0 MB 37.5 MB/s eta 0:00:01
Collecting prometheus-client==0.6.0
  Downloading prometheus_client-0.6.0.tar.gz (36 kB)
Collecting prompt-toolkit==2.0.9
  Downloading prompt_toolkit-2.0.9-py3-none-any.whl (337 kB)
     |████████████████████████████████| 337 kB 40.3 MB/s eta 0:00:01
Collecting protobuf==3.6.1
  Downloading protobuf-3.6.1-cp36-cp36m-manylinux1_x86_64.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 31.5 MB/s eta 0:00:01
Requirement already satisfied: ptyprocess==0.6.0 in /home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages (from -r requirements.txt (line 50)) (0.6.0)
Collecting pydot==1.4.1
  Downloading pydot-1.4.1-py2.py3-none-any.whl (19 kB)
Collecting Pygments==2.3.1
  Downloading Pygments-2.3.1-py2.py3-none-any.whl (849 kB)
     |████████████████████████████████| 849 kB 45.6 MB/s eta 0:00:01
Collecting pyparsing==2.3.1
  Downloading pyparsing-2.3.1-py2.py3-none-any.whl (61 kB)
     |████████████████████████████████| 61 kB 504 kB/s  eta 0:00:01
Collecting python-dateutil==2.8.0
  Downloading python_dateutil-2.8.0-py2.py3-none-any.whl (226 kB)
     |████████████████████████████████| 226 kB 69.2 MB/s eta 0:00:01
Collecting pytz==2018.9
  Downloading pytz-2018.9-py2.py3-none-any.whl (510 kB)
     |████████████████████████████████| 510 kB 63.8 MB/s eta 0:00:01
Collecting PyWavelets==1.0.1
  Downloading PyWavelets-1.0.1-cp36-cp36m-manylinux1_x86_64.whl (4.4 MB)
     |████████████████████████████████| 4.4 MB 27.0 MB/s eta 0:00:01    |▍                               | 51 kB 34.2 MB/s eta 0:00:01
Collecting PyYAML==3.13
  Downloading PyYAML-3.13.tar.gz (270 kB)
     |████████████████████████████████| 270 kB 65.5 MB/s eta 0:00:01
Collecting pyzmq==18.0.0
  Downloading pyzmq-18.0.0-cp36-cp36m-manylinux1_x86_64.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 46.8 MB/s eta 0:00:01
Collecting qtconsole==4.4.3
  Downloading qtconsole-4.4.3-py2.py3-none-any.whl (113 kB)
     |████████████████████████████████| 113 kB 76.9 MB/s eta 0:00:01
Collecting scikit-image==0.14.2
  Downloading scikit_image-0.14.2-cp36-cp36m-manylinux1_x86_64.whl (25.3 MB)
     |████████████████████████████████| 25.3 MB 29.7 MB/s eta 0:00:01
Collecting scipy==1.2.1
  Downloading scipy-1.2.1-cp36-cp36m-manylinux1_x86_64.whl (24.8 MB)
     |████████████████████████████████| 24.8 MB 18.2 MB/s eta 0:00:01
Requirement already satisfied: Send2Trash==1.5.0 in /home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages (from -r requirements.txt (line 62)) (1.5.0)
Collecting six==1.12.0
  Downloading six-1.12.0-py2.py3-none-any.whl (10 kB)
Collecting tensorboard==1.14.0
  Downloading tensorboard-1.14.0-py3-none-any.whl (3.1 MB)
     |████████████████████████████████| 3.1 MB 18.2 MB/s eta 0:00:01
Collecting tensorflow==1.14.0
  Downloading tensorflow-1.14.0-cp36-cp36m-manylinux1_x86_64.whl (109.2 MB)
     |████████████████████████████████| 109.2 MB 11 kB/s s eta 0:00:01    |███▊                            | 12.6 MB 16.8 MB/s eta 0:00:06     |██████████████▋                 | 49.9 MB 16.8 MB/s eta 0:00:04     |████████████████████▊           | 70.7 MB 41.4 MB/s eta 0:00:01
Requirement already satisfied: termcolor==1.1.0 in /home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages (from -r requirements.txt (line 66)) (1.1.0)
Collecting terminado==0.8.1
  Downloading terminado-0.8.1-py2.py3-none-any.whl (33 kB)
Collecting testpath==0.4.2
  Downloading testpath-0.4.2-py2.py3-none-any.whl (163 kB)
     |████████████████████████████████| 163 kB 77.2 MB/s eta 0:00:01
Collecting toolz==0.9.0
  Downloading toolz-0.9.0.tar.gz (45 kB)
     |████████████████████████████████| 45 kB 5.7 MB/s  eta 0:00:01
Collecting tornado==5.1.1
  Downloading tornado-5.1.1.tar.gz (516 kB)
     |████████████████████████████████| 516 kB 59.6 MB/s eta 0:00:01
Collecting traitlets==4.3.2
  Downloading traitlets-4.3.2-py2.py3-none-any.whl (74 kB)
     |████████████████████████████████| 74 kB 4.8 MB/s  eta 0:00:01
Collecting wcwidth==0.1.7
  Downloading wcwidth-0.1.7-py2.py3-none-any.whl (21 kB)
Requirement already satisfied: webencodings==0.5.1 in /home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages (from -r requirements.txt (line 73)) (0.5.1)
Collecting Werkzeug==0.14.1
  Downloading Werkzeug-0.14.1-py2.py3-none-any.whl (322 kB)
     |████████████████████████████████| 322 kB 69.7 MB/s eta 0:00:01
Collecting widgetsnbextension==3.4.2
  Downloading widgetsnbextension-3.4.2-py2.py3-none-any.whl (2.2 MB)
     |████████████████████████████████| 2.2 MB 35.4 MB/s eta 0:00:01
Requirement already satisfied: setuptools>=18.5 in /home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages (from ipython==7.3.0->-r requirements.txt (line 16)) (46.1.3.post20200330)
Requirement already satisfied: wheel>=0.26; python_version >= "3" in /home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages (from tensorboard==1.14.0->-r requirements.txt (line 64)) (0.34.2)
Requirement already satisfied: google-pasta>=0.1.6 in /home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 65)) (0.2.0)
Collecting tensorflow-estimator<1.15.0rc0,>=1.14.0rc0
  Downloading tensorflow_estimator-1.14.0-py2.py3-none-any.whl (488 kB)
     |████████████████████████████████| 488 kB 59.1 MB/s eta 0:00:01
Requirement already satisfied: wrapt>=1.11.1 in /home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 65)) (1.12.1)
Building wheels for collected packages: absl-py, music21, networkx, prometheus-client, PyYAML, toolz, tornado, keras-contrib
  Building wheel for absl-py (setup.py) ... done
  Created wheel for absl-py: filename=absl_py-0.7.0-py3-none-any.whl size=113529 sha256=02bb9530b2727ac31210592d0753b4bd030589e65d55e71a16252917073f5849
  Stored in directory: /home/ec2-user/.cache/pip/wheels/a2/b3/02/e1677c47f00c10e3d7070e64c94472003973ee97b544b79a0d
  Building wheel for music21 (setup.py) ... done
  Created wheel for music21: filename=music21-5.5.0-py3-none-any.whl size=21451596 sha256=40a81226342b481659e32b7ea2cb586fa2bdc77c239dd4b50ba238254922662b
  Stored in directory: /home/ec2-user/.cache/pip/wheels/07/2e/80/e0b211a7ace9ab50c7f7c3a2efe47188d07902a20b2dfbba5e
  Building wheel for networkx (setup.py) ... done
  Created wheel for networkx: filename=networkx-2.2-py2.py3-none-any.whl size=1527322 sha256=8cc42057f0eed1b3c1dd14caadc0e91ba448973685dd5e1a72f99b901de74dcc
  Stored in directory: /home/ec2-user/.cache/pip/wheels/0f/12/87/f2ce9e3aeb87e36bde305edc44e4877932b039491b97f96090
  Building wheel for prometheus-client (setup.py) ... done
  Created wheel for prometheus-client: filename=prometheus_client-0.6.0-py3-none-any.whl size=39586 sha256=5f485fc833b8c9245d44af8acfbee554095fdf9bf69c50bef14f39e94bee877a
  Stored in directory: /home/ec2-user/.cache/pip/wheels/e1/71/fc/cb01a3901c62441527b0117de2b202536a053d302707c7d8b5
  Building wheel for PyYAML (setup.py) ... done
  Created wheel for PyYAML: filename=PyYAML-3.13-cp36-cp36m-linux_x86_64.whl size=43086 sha256=446ace8f2a79b92cbc3bba8eaafcbb9cda7685f771125fc9679f22d05cf5d9ea
  Stored in directory: /home/ec2-user/.cache/pip/wheels/ab/80/60/97eaebe423482bcf0963b19495b4cfe6c4caef59761a0c427d
  Building wheel for toolz (setup.py) ... done
  Created wheel for toolz: filename=toolz-0.9.0-py3-none-any.whl size=53239 sha256=7504b4de75be7d81ef32713197e0a27f390ec53db34e2adbc9529a843e99287a
  Stored in directory: /home/ec2-user/.cache/pip/wheels/88/f2/15/6dab9a7637ceb58bf80dbb5a2e42d239f0a1ce2146849e961c
  Building wheel for tornado (setup.py) ... done
  Created wheel for tornado: filename=tornado-5.1.1-cp36-cp36m-linux_x86_64.whl size=457582 sha256=23b443cbf2c37300cd1ddde710bf8c4ae7a90e4cff3754168196eb8aaccb7b52
  Stored in directory: /home/ec2-user/.cache/pip/wheels/64/74/71/e7a0d0eb4fc42cb20a17aec36f8f0b5b8c5e1ec19c701fd34a
  Building wheel for keras-contrib (setup.py) ... done
  Created wheel for keras-contrib: filename=keras_contrib-2.0.8-py3-none-any.whl size=101064 sha256=80b592408bd6bdb266902042141f8e59e2564678b1587f3b9264aae10db465f1
  Stored in directory: /tmp/pip-ephem-wheel-cache-o4m49ny5/wheels/16/87/6e/8e3b73f23fb38163af1c319aa23f14602018b501ecb91430a2
Successfully built absl-py music21 networkx prometheus-client PyYAML toolz tornado keras-contrib
ERROR: spyder 4.1.2 requires pyqt5<5.13; python_version >= "3", which is not installed.
ERROR: spyder 4.1.2 requires pyqtwebengine<5.13; python_version >= "3", which is not installed.
ERROR: pytest-astropy 0.8.0 requires pytest-cov>=2.0, which is not installed.
ERROR: pytest-astropy 0.8.0 requires pytest-filter-subpackage>=0.1, which is not installed.
ERROR: tensorflow-serving-api 1.15.0 has requirement tensorflow~=1.15.0, but you'll have tensorflow 1.14.0 which is incompatible.
ERROR: tensorflow-gpu 1.15.3 has requirement keras-applications>=1.0.8, but you'll have keras-applications 1.0.7 which is incompatible.
ERROR: tensorflow-gpu 1.15.3 has requirement tensorboard<1.16.0,>=1.15.0, but you'll have tensorboard 1.14.0 which is incompatible.
ERROR: tensorflow-gpu 1.15.3 has requirement tensorflow-estimator==1.15.1, but you'll have tensorflow-estimator 1.14.0 which is incompatible.
ERROR: spyder 4.1.2 has requirement jedi==0.15.2, but you'll have jedi 0.13.2 which is incompatible.
ERROR: spyder 4.1.2 has requirement parso==0.5.2, but you'll have parso 0.3.4 which is incompatible.
ERROR: spyder 4.1.2 has requirement qtconsole>=4.6.0, but you'll have qtconsole 4.4.3 which is incompatible.
ERROR: spyder-kernels 1.9.0 has requirement ipykernel>=5.1.3; python_version > "2", but you'll have ipykernel 5.1.0 which is incompatible.
ERROR: spyder-kernels 1.9.0 has requirement jupyter-client>=5.3.4, but you'll have jupyter-client 5.2.4 which is incompatible.
ERROR: python-language-server 0.31.9 has requirement jedi<0.16,>=0.14.1, but you'll have jedi 0.13.2 which is incompatible.
ERROR: jupyterlab 1.2.6 has requirement jupyterlab_server~=1.0.0, but you'll have jupyterlab-server 1.1.0 which is incompatible.
ERROR: jupyterlab-server 1.1.0 has requirement jsonschema>=3.0.1, but you'll have jsonschema 2.6.0 which is incompatible.
ERROR: flask 1.1.1 has requirement Jinja2>=2.10.1, but you'll have jinja2 2.10 which is incompatible.
ERROR: flask 1.1.1 has requirement Werkzeug>=0.15, but you'll have werkzeug 0.14.1 which is incompatible.
ERROR: distributed 2.14.0 has requirement dask>=2.9.0, but you'll have dask 1.1.1 which is incompatible.
Installing collected packages: six, absl-py, appnope, astor, bleach, cloudpickle, dask, decorator, defusedxml, grpcio, numpy, h5py, python-dateutil, traitlets, jupyter-core, tornado, pyzmq, jupyter-client, parso, jedi, Pygments, pexpect, wcwidth, prompt-toolkit, ipython, ipykernel, jsonschema, nbformat, terminado, MarkupSafe, Jinja2, prometheus-client, testpath, nbconvert, notebook, widgetsnbextension, ipywidgets, jupyter-console, Keras-Applications, Keras-Preprocessing, kiwisolver, Markdown, pyparsing, matplotlib, music21, networkx, pytz, pandas, Pillow, protobuf, pydot, PyWavelets, PyYAML, qtconsole, scipy, scikit-image, Werkzeug, tensorboard, tensorflow-estimator, tensorflow, toolz, keras-contrib
  Attempting uninstall: six
    Found existing installation: six 1.14.0
    Uninstalling six-1.14.0:
      Successfully uninstalled six-1.14.0
  Attempting uninstall: absl-py
    Found existing installation: absl-py 0.9.0
    Uninstalling absl-py-0.9.0:
      Successfully uninstalled absl-py-0.9.0
  Attempting uninstall: astor
    Found existing installation: astor 0.8.1
    Uninstalling astor-0.8.1:
      Successfully uninstalled astor-0.8.1
  Attempting uninstall: bleach
    Found existing installation: bleach 3.1.4
    Uninstalling bleach-3.1.4:
      Successfully uninstalled bleach-3.1.4
  Attempting uninstall: cloudpickle
    Found existing installation: cloudpickle 1.3.0
    Uninstalling cloudpickle-1.3.0:
      Successfully uninstalled cloudpickle-1.3.0
  Attempting uninstall: dask
    Found existing installation: dask 2.14.0
    Uninstalling dask-2.14.0:
      Successfully uninstalled dask-2.14.0
  Attempting uninstall: decorator
    Found existing installation: decorator 4.4.2
    Uninstalling decorator-4.4.2:
      Successfully uninstalled decorator-4.4.2
  Attempting uninstall: defusedxml
    Found existing installation: defusedxml 0.6.0
    Uninstalling defusedxml-0.6.0:
      Successfully uninstalled defusedxml-0.6.0
  Attempting uninstall: grpcio
    Found existing installation: grpcio 1.31.0
    Uninstalling grpcio-1.31.0:
      Successfully uninstalled grpcio-1.31.0
  Attempting uninstall: numpy
    Found existing installation: numpy 1.18.1
    Uninstalling numpy-1.18.1:
      Successfully uninstalled numpy-1.18.1
  Attempting uninstall: h5py
    Found existing installation: h5py 2.10.0
    Uninstalling h5py-2.10.0:
      Successfully uninstalled h5py-2.10.0
  Attempting uninstall: python-dateutil
    Found existing installation: python-dateutil 2.8.1
    Uninstalling python-dateutil-2.8.1:
      Successfully uninstalled python-dateutil-2.8.1
  Attempting uninstall: traitlets
    Found existing installation: traitlets 4.3.3
    Uninstalling traitlets-4.3.3:
      Successfully uninstalled traitlets-4.3.3
  Attempting uninstall: jupyter-core
    Found existing installation: jupyter-core 4.6.3
    Uninstalling jupyter-core-4.6.3:
      Successfully uninstalled jupyter-core-4.6.3
  Attempting uninstall: tornado
    Found existing installation: tornado 6.0.4
    Uninstalling tornado-6.0.4:
      Successfully uninstalled tornado-6.0.4
  Attempting uninstall: pyzmq
    Found existing installation: pyzmq 18.1.1
    Uninstalling pyzmq-18.1.1:
      Successfully uninstalled pyzmq-18.1.1
  Attempting uninstall: jupyter-client
    Found existing installation: jupyter-client 6.1.2
    Uninstalling jupyter-client-6.1.2:
      Successfully uninstalled jupyter-client-6.1.2
  Attempting uninstall: parso
    Found existing installation: parso 0.5.2
    Uninstalling parso-0.5.2:
      Successfully uninstalled parso-0.5.2
  Attempting uninstall: jedi
    Found existing installation: jedi 0.15.2
    Uninstalling jedi-0.15.2:
      Successfully uninstalled jedi-0.15.2
  Attempting uninstall: Pygments
    Found existing installation: Pygments 2.6.1
    Uninstalling Pygments-2.6.1:
      Successfully uninstalled Pygments-2.6.1
  Attempting uninstall: pexpect
    Found existing installation: pexpect 4.8.0
    Uninstalling pexpect-4.8.0:
      Successfully uninstalled pexpect-4.8.0
  Attempting uninstall: wcwidth
    Found existing installation: wcwidth 0.1.9
    Uninstalling wcwidth-0.1.9:
      Successfully uninstalled wcwidth-0.1.9
  Attempting uninstall: prompt-toolkit
    Found existing installation: prompt-toolkit 3.0.4
    Uninstalling prompt-toolkit-3.0.4:
      Successfully uninstalled prompt-toolkit-3.0.4
  Attempting uninstall: ipython
    Found existing installation: ipython 7.13.0
    Uninstalling ipython-7.13.0:
      Successfully uninstalled ipython-7.13.0
  Attempting uninstall: ipykernel
    Found existing installation: ipykernel 5.1.4
    Uninstalling ipykernel-5.1.4:
      Successfully uninstalled ipykernel-5.1.4
  Attempting uninstall: jsonschema
    Found existing installation: jsonschema 3.2.0
    Uninstalling jsonschema-3.2.0:
      Successfully uninstalled jsonschema-3.2.0
  Attempting uninstall: nbformat
    Found existing installation: nbformat 5.0.4
    Uninstalling nbformat-5.0.4:
      Successfully uninstalled nbformat-5.0.4
  Attempting uninstall: terminado
    Found existing installation: terminado 0.8.3
ERROR: Cannot uninstall 'terminado'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
WARNING: You are using pip version 20.0.2; however, version 20.2.3 is available.
You should consider upgrading via the '/home/ec2-user/anaconda3/envs/tensorflow_p36/bin/python -m pip install --upgrade pip' command.

The TF2 branch works fine. Closing this.