Week 3 (1 Dec – 8 Dec) – Installing Tensorflow

While trying to run the code, the group ran with various problems regarding tensorflow. The first wall we hit was that we had difficulties installing the library with our current version of Python. Instead of using a python system environment, the group decided to use Anaconda to create a virtual environment. Tensorflow seems to have a compatibility issue with the latest version of Python 3, hence we created a downgraded Python 3 environment to try install Tensorflow. We successfully installed tensorflow with Anaconda, however we still faced issues executing the code. It turns out that tensorflow had dependencies problem depending on its version, hence higher versions of tensorflow does not support a code that was written with a previous version of tensorflow. After realizing this, we downgraded tensorflow and successfully ran the code. Our solution is as followed:

We used the Anaconda prompt to install tensorflow

  1. conda create -n tensorflow_env python=3.6
  2. activate tensorflow_env
  3. Pip install tensorflow==1.12
  4. Pip install opencv-python
  5. Pip install editdistance
  6. Pip install matplotlib
This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.