Installing Theano on EPD (Windows x64)

安稳与你 提交于 2019-11-29 16:38:15
nouiz

The last release of Theano(0.5) has some problem on Windows. You need to install the bleeding edge version. You can update your version like this:

pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git

This should solve the problem. If not, you probably have some conflict with a different installation of gcc. Do you have installed it with cygwin or mingw? EPD installs its own version of mingw.

I couldn't get Theano working with Enthought, but using the Anaconda python distribution I eventually got it working. Here's how:

  • uninstall Enthought and any other python version (start from scratch)
  • download and install Anaconda python distribution from this link: http://09c8d0b2229f813c1b93-c95ac804525aac4b6dba79b00b39d1d3.r79.cf1.rackcdn.com/Anaconda-1.5.0-Windows-x86_64.exe and click the option to use Anaconda as your default python version
  • to get the academic license, go to this page: https://store.continuum.io/cshop/academicanaconda and click the "free" button next to Anaconda Academic License (right side of page)
  • you should receive an email with an academic license .txt file. Follow the instructions in the email to place the file in the correct directory, and run several command-line commands to update anaconda and install numpy and scipy
  • open a windows command prompt and type

    pip install theano

  • create a file .theanorc.txt containing the lines:

    [global] openmp=False

    [blas] ldflags=

  • place .theanorc.txt in your home folder (the folder for your user account)

  • make sure the following paths are added to your PATH environment variable:

    C:\Anaconda\MinGW\bin; C:\Anaconda\MinGW\x86_64-w64-mingw32\lib; C:\Anaconda; C:\Anaconda\Scripts;

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