![]() |
Installing keras in Python 2.7 environment - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Installing keras in Python 2.7 environment (/thread-30677.html) |
Installing keras in Python 2.7 environment - ErnestTBass - Oct-31-2020 I have an virtual environment with python 2.7 installed. I know that I should not be using Python 2.7, but the source code that I found (I did not write it) is in python 2.7. I would like to install keras, specifically for python 2.7. I believe hat this can be done. I just do not know how. I can not just activate the environment with python 2.7, and then type conda install keras That will not work. Since the code that I have is using this version of python with keras there must be these modules available somewhere. The question is where and how to install them. So how do I install keras in a python 2.7 environment? Any help appreciated. Thanks in advance. Respectfully, ErnestTBass RE: Installing keras in Python 2.7 environment - jefsummers - Oct-31-2020 Looking around for keras for 2.7, I think this will work pip install Keras==2.2.4See This PyPi page RE: Installing keras in Python 2.7 environment - ErnestTBass - Nov-01-2020 Now will this also install tensorflow. I know that tensorflow and keras travel together. Thanks for your help! Respectfully, ErnestTBass RE: Installing keras in Python 2.7 environment - jefsummers - Nov-01-2020 Probably not. It's an older Keras which was not as tightly bound to Tensorflow, in fact would support a couple of other back end engines. Looking around, I saw this on Stack Overflow: Quote:13 You are unlikely to be able to install Tensorflow v2. You might see if THIS version will install |