How to install Theano for Python 3.5 on Windows 10

徘徊边缘 提交于 2019-12-11 04:13:59

问题


I can't find how one is supposed to install Theano for Python 3.5 (Windows 10) only for Python 2.7.

I don't want to have to downgrade to 2.7 so does anyone know how to install Theano for Python 3.5 (on Windows 10)?

A clear set of step-by-step instructions would be greatly appreciated, as well as other things I need and how to install them.


回答1:


To make this question more self contained I find it worth to add this answer:

Winpython is the best!!, actually it is the recommended installation over windows, read here. It comes with python 3.5 fully loaded with all the dependencies including numpy, scipy, scikit, theano, keras, ipython, jupyter and more, actually you don't need to do anything or to change any configurations, all you need to do (if you want to enable GPU) is to download CUDA (and of course you should have visual C++) and finally add this variable to your environment variables:

Variable name: THEANO_FLAGS

Variable value: floatX=float32,device=gpu,nvcc.fastmath=True,lib.cnmem=0.8

(lib.cnmem=0.8) can be equal to any value, this means that cuda will use 80% of your GPU memory

If you need any other clarification let me know in the comments



来源:https://stackoverflow.com/questions/38129033/how-to-install-theano-for-python-3-5-on-windows-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!