Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
Hotfixs for python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunqi Shao authored and yqshao committed May 1, 2023
1 parent 7de67ac commit d3cd756
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions notebooks/7_pinn.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@
"import warnings, logging\n",
"logging.getLogger(\"tensorflow\").setLevel(logging.ERROR)\n",
"warnings.filterwarnings('ignore', 'Converting sparse IndexedSlices')\n",
"!pip install tensorflow==2.7\n",
"!pip install tensorflow==2.8\n",
"!pip install tensorboard==2.4\n",
"!pip install --quiet git+https://github.com/yqshao/PiNN.git@TF2\n",
"!pip install --quiet git+https://github.com/yqshao/PiNNboard.git@TF2\n",
"!wget -nv https://raw.githubusercontent.com/yqshao/PiNNLab/master/resources/qm9_{train,test}.{yml,tfr}"
"!wget -nv https://raw.githubusercontent.com/yqshao/PiNNLab/master/resources/qm9_{train,test}.{yml,tfr}\n",
"!sed -i s/from\\ collections\\ import/from\\ collections.abc\\ import/g /usr/local/lib/python3.10/dist-packages/tensorboard/_vendor/html5lib/_trie/_base.py\n",
"# ^ hotfix for https://github.com/tensorflow/tensorboard/issues/5478"
]
},
{
Expand Down

0 comments on commit d3cd756

Please sign in to comment.