Skip to content Skip to sidebar Skip to footer

Error In Installing Tensorflow In Mac

I am trying to install Tenosrflow in mac using the instructions from https://www.tensorflow.org/install/ But I get a syntax error all the time when I want to import tensorflow. I

Solution 1:

This seems to be an issue with python version 3.7 as you can also see in this github issue. Apparently the cause is that async is a keyword in 3.7. Good news is that there also seems to be a solution:

As mentioned in the github issue: Renaming async to e.g. async1 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py gets rid of the issue

Note: There are multiple links inside of the github issue, also references to commits fixing 3.7. incompatabilities, so cloning the github and installing from source might also be an option

Post a Comment for "Error In Installing Tensorflow In Mac"