Nowadays I'm working with keras 1.0.5, but I would like to install 1.2.2 to test new functionalities. I have installed the newest library via setup.py install. When I execute sys.path command I can see that both packages are defined in the PYTHONPATH.
['C:\\eclipse\\plugins\\org.python.pydev_5.1.2.201606231256\\pysrc',
'C:\\Anaconda2\\lib\\site-packages\\keras-1.2.2-py2.7.egg',
'C:\\Anaconda2\\DLLs',
'C:\\Anaconda2\\lib',
'C:\\Anaconda2\\lib\\lib-tk',
'C:\\Anaconda2',
'C:\\Anaconda2\\lib\\site-packages',
'C:\\Anaconda2\\lib\\site-packages\\Sphinx-1.4.1-py2.7.egg',
'C:\\Anaconda2\\lib\\site-packages\\win32',
'C:\\Anaconda2\\lib\\site-packages\\win32\\lib',
'C:\\Anaconda2\\lib\\site-packages\\Pythonwin',
'C:\\Anaconda2\\lib\\site-packages\\setuptools-23.0.0-py2.7.egg',
'C:\\Anaconda2\\lib\\site-packages\\theano-0.8.2-py2.7.egg',
'C:\\Anaconda2\\lib\\site-packages\\python_docx-0.8.6-py2.7.egg',
'C:\\Anaconda2\\lib\\site-packages\\xgboost-0.6-py2.7.egg',
'C:\\Anaconda2\\lib\\site-packages\\keras-1.0.5-py2.7.egg',
'C:\\Anaconda2\\python27.zip',
'C:\\Anaconda2\\lib\\plat-win',
'C:\\Anaconda2\\lib\\site-packages\\IPython\\extensions']
When I import keras, the newest version (1.2.2) is imported. But, when I try to fix the oldest version (1.0.5):
VersionConflict: (keras 1.2.2 (c:\anaconda2\lib\site-packages\keras-1.2.2-py2.7.egg), Requirement.parse('keras==1.0.5'))