Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
60071170
提交
60071170
authored
12月 01, 2010
作者:
Olivier Delalleau
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Continued to work on reformatting Windows installation instructions
上级
2dbf77c0
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
46 行增加
和
36 行删除
+46
-36
install.txt
doc/install.txt
+46
-36
没有找到文件。
doc/install.txt
浏览文件 @
60071170
...
@@ -70,6 +70,8 @@ The following libraries and software are optional:
...
@@ -70,6 +70,8 @@ The following libraries and software are optional:
Linux
Linux
-----
-----
.. _linux_basic:
Basic user install instructions
Basic user install instructions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
@@ -427,18 +429,11 @@ You can keep the default install options, except that the installation
...
@@ -427,18 +429,11 @@ You can keep the default install options, except that the installation
directory should not contain any blank space (in particular, do not install it
directory should not contain any blank space (in particular, do not install it
into ``C:\Program Files``).
into ``C:\Program Files``).
If you already have either Python or MinGW installed, it is safer to
If instead you already have either Python or MinGW installed, it is safer to
install components individually to avoid conflicts:
install components individually to avoid conflicts. Note that it should be
possible to run Theano with `Cygwin <http://www.cygwin.com/>`__ instead of
Installing components individually
MinGW, but this has not been tested yet. In order to manually install the same
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
components as in Python(x,y) that are required by Theano, follow these steps:
DISCLAIMER: These are old installation instructions (to be revised).
Running Theano under Windows is currently achieved by using the `MinGW
<http://www.mingw.org>`__ port of the GCC compiler.
It could probably also run with `Cygwin <http://www.cygwin.com/>`__,
but this has not been tested yet.
- From `the MinGW files <http://sourceforge.net/projects/mingw/files/>`__,
- From `the MinGW files <http://sourceforge.net/projects/mingw/files/>`__,
download the latest version of the ``Automated MinGW Installer``
download the latest version of the ``Automated MinGW Installer``
...
@@ -446,6 +441,17 @@ but this has not been tested yet.
...
@@ -446,6 +441,17 @@ but this has not been tested yet.
you probably do not need them all: if you feel like figuring out exactly
you probably do not need them all: if you feel like figuring out exactly
which ones are required, let us know!).
which ones are required, let us know!).
- It is recommended to set your MinGW home to be the same as your Windows home
directory. This will avoid inconsistent behavior between running Theano
in a Windows command prompt vs. a MinGW shell. One way to do this without
setting a global Windows ``HOME`` environment variable (which may affect
other programs) is to edit your ``msys.bat`` file (found e.g. under
``C:\MinGW\msys\1.0``) and add the following line at the beginning:
.. code-bloack:: bash
set HOME=%USERPROFILE%
- If you do not have them already, install the latest versions of
- If you do not have them already, install the latest versions of
`Python 2.x <http://www.python.org/download/windows>`__ and
`Python 2.x <http://www.python.org/download/windows>`__ and
corresponding `NumPy <http://sourceforge.net/projects/numpy/files/>`__
corresponding `NumPy <http://sourceforge.net/projects/numpy/files/>`__
...
@@ -464,37 +470,30 @@ but this has not been tested yet.
...
@@ -464,37 +470,30 @@ but this has not been tested yet.
- In order to run Theano's test-suite, you will need `nose
- In order to run Theano's test-suite, you will need `nose
<http://somethingaboutorange.com/mrl/projects/nose>`__.
<http://somethingaboutorange.com/mrl/projects/nose>`__.
After unpacking its source code, you can build and install it from within
After unpacking its source code, you can build and install it from within
the code directory by:
its code directory by running the following command (either from a Windows
command prompot or a MinGW shell):
.. code-block:: bash
.. code-block:: bash
python setup.py install
python setup.py install
- Install Theano using the above :ref:`install_bleeding_edge` installation
At this point, whether you installed Python(x,y) or individual components, you
instructions
should have MinGW, Python, Numpy, Scipy and Nose installed.
(using ``easy_install`` and has not been tested yet).
It should be possible to install Theano with ``pip`` as described in
In particular, do not forget to make the Theano package accessible from
:ref:`linux_basic`, but this has not been tested yet under Windows. We describe
Python, e.g. by adding to your ``.profile`` a line like
here instructions to use the latest code repository version (bleeding-edge).
``export PYTHONPATH=PYTHONPATH:$HOME/Theano``.
Command lines listed below can be run either in a Windows prompt
(click ``Start`` and type the ``cmd`` command) or a MinGW Shell (not available
- Please note that at this time, the test suite may be broken under Windows.
if you only installed Python(x,y)).
In particular, many tests may fail while running the test-suite,
due to insufficient memory resources (in which case you will probably get an
error of the type ``"Not enough storage is available to
process this command"``): one workaround is to run nosetests
multiple times under individual subdirectories.
- Install Mercurial. You can download it
- Install Mercurial. You can download it
`here <http://mercurial.selenic.com/downloads>`__. You may get either the command
`here <http://mercurial.selenic.com/downloads>`__.
You may get either the command
line Windows version or the TortoiseHG GUI version: it does not matter as
line Windows version or the TortoiseHG GUI version: it does not matter as
far as installing Theano is concerned.
far as installing Theano is concerned.
- Start a shell (hit the Start button and run the ``cmd`` command) and navigate to
- Navigate into the directory you want Theano to be installed in, and download
the directory where you want to install Theano (it is ok to just stay in the
it with
default directory, which should be your user profile directory). Then download
Theano with:
.. code-block:: bash
.. code-block:: bash
...
@@ -502,7 +501,7 @@ but this has not been tested yet.
...
@@ -502,7 +501,7 @@ but this has not been tested yet.
- Add (or edit) the PYTHONPATH environment variable (into Control
- Add (or edit) the PYTHONPATH environment variable (into Control
Panel / System / Advanced / Environment Variables), so that it contains
Panel / System / Advanced / Environment Variables), so that it contains
the full installation directory of Theano. Restart a shell
(``cmd``)
to verify
the full installation directory of Theano. Restart a shell to verify
that it works:
that it works:
.. code-block:: none
.. code-block:: none
...
@@ -511,8 +510,9 @@ but this has not been tested yet.
...
@@ -511,8 +510,9 @@ but this has not been tested yet.
C:\Users\login\Theano
C:\Users\login\Theano
- Create a new ``.theanorc`` text file (or ``.theanorc.txt``, which is easier
- Create a new ``.theanorc`` text file (or ``.theanorc.txt``, which is easier
to create under Windows) in your user profile directory, containing the following
to create under Windows) in your user profile directory (the directory you
two lines:
are into when you start a new command prompt with ``cmd``), containing the
following two lines:
.. code-block:: cfg
.. code-block:: cfg
...
@@ -535,6 +535,16 @@ but this has not been tested yet.
...
@@ -535,6 +535,16 @@ but this has not been tested yet.
trying to compile any Theano function would result in a compilation error
trying to compile any Theano function would result in a compilation error
due to the system being unable to find 'blas.dll').
due to the system being unable to find 'blas.dll').
- You should be able to run the test-suite by executing ``nosetests`` within
the Theano installation directory (if you installed Nose manually as described
above, this may only work in a MinGW shell).
Please note that at this time, the test suite may be broken under Windows.
In particular, many tests may fail while running the test-suite,
due to insufficient memory resources (in which case you will probably get an
error of the type ``"Not enough storage is available to
process this command"``): one workaround is to run nosetests
multiple times under individual subdirectories.
Compiling a faster BLAS
Compiling a faster BLAS
~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论