Setting up local environment

thaks for sharing this… I fumbled around and found a way to solve it… along the way, found that the root cause is tf2.4.x is not compatible with numpy 1.20.x. tf2.4.x requires numpy version >=1.19.6 and <1.20.x.

I’ve made a separate post about this… I think it would be good to provide the conda env yml file so that participants can easily use it to re-create the course environment.

so far, this is my config:
tf-gpu: 2.4.1
python: 3.7.10
numpy: 1.19.4 (still able to work though not 1.19.6)

these are the problematic notebooks:

  1. C5W1 dinosaur names’ shakespear section
  2. C5W2 emojify
  3. C5W3 Neural machine translation
  4. C5W4 ungraded Name entity recognition

I rgink it might be good to make a sticky post about this issue and how to resolve it as the conda installation of tensorflow will pull down 2.4.1 or later with numpy 1.20.x. no idea why conda will pull in an incompatible version of numpy with this version of tf. according to tf, 2.4.x will not be compatible with numpy 1.20.x… so I think it will be a while before the issue is fixed… so likely many participants will be hit by this issue.

thanks for your enlightenment… I’ve used conda env export to save my environment just in case…

2 Likes