In fact, the problem was that I had several versions of Python.
Removing Anaconda Python and installing all the libraries using pip / apt-get instead of conda solved my problem.
I found this to be true, but there is no need to remove anaconda. I had the same issue, but with multiple versions of python. However, I created an environment that used only the version of Anaconda (while in this environment). In terminal (on Mac and other suitable terminals) type / copy
conda create -n dataweekends python=2.7 pandas scikit-learn jupyter matplotlib
dataweekends is just the name of the environment you created. To access this, simply use the command
source activate dataweekends
Remember that you (may) have to reinstall dependencies once in this new environment.
I got this trick from here https://www.dataweekends.com/blog/2017/03/09/set-up-your-mac-for-deep-learning-with-python-keras-and-tensorflow "
I would also recommend setting up different environments for each project that you are running in python.
jmurph
source share