Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Switching from tensorflow on python 3.6 to python 3.5

This is my first question on stackoverflow, please bear with me as I will do my best to provide as much info as possible.

I have a windows 10, 6-bit processor. My end goal is to use keras within spyder. The first thing I did was update python to 3.6 and install tensorflow, which seemed to work. When I attempted to get keras, however, it wasn't working, and I read that keras worked on python 3.5. I successfully installed keras on python 3.5, which automatically installed theano as the backend.

But now I have two spyder environments, one running off of python 3.5, one off of 3.6. The 3.5 reads keras but doesn't go through with any modules because it cannot find tensorflow. The 3.6 can read tensorflow, but cannot find keras.

Please let me know what you would recommend. Thank you!

like image 920
David William Avatar asked Sep 09 '26 03:09

David William


1 Answers

Create a virtualenv with python 3.5 installed.

I dealt with this same issue, using Jupyter Notebook. Didn't understand why you would even need a virtualenv until I learned from this roadblock.

Full details on installing and setting up a virtualenv can be found here: http://pymote.readthedocs.io/en/latest/install/windows_virtualenv.html

like image 134
Anthony R Avatar answered Sep 11 '26 17:09

Anthony R



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!