Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Without more information, I can only guess, but my first guess is…</p> <p>You haven't <em>actually</em> installed pylearn2, because if you follow the linked docs to grab the git repo and add a <code>PYLEARN2_DATA_PATH</code> variable, nothing gets installed into <code>site-packages</code> (or <code>dist-packages</code> or anywhere else on <code>sys.path</code>).</p> <p>This means that pylearn2 will only work when you start Python from within the top-level directory of the pylearn2 repo.</p> <p>So, if you run a script like this:</p> <pre><code>$ cd /path/to/pylearn2 $ cd scripts/tutorials/grbm_smd/ $ python make_dataset.py </code></pre> <p>… it won't actually work.</p> <hr> <p>It looks like there <em>is</em> a <code>setup.py</code> file in the repository. Does it work? I have no idea. Even though the docs don't mention using it, you might want to try. Either this:</p> <pre><code>$ pip install . </code></pre> <p>… or, if you don't have <code>pip</code> or it doesn't work on this package:</p> <pre><code>$ python setup.py install </code></pre> <p>Either way, of course, you may need <code>sudo</code> or a flag to install to your user site-packages instead of system, etc., as with any other Python package.</p> <p>If that doesn't work, you might be able to just add <code>/path/to/pylearn2</code> to your <code>sys.path</code> in some way. The most obvious way is by doing an <code>export PYTHONPATH=/path/to/pylearn2:$PYTHONPATH</code> in your ~/.bashrc.</p> <hr> <p>Also, you will need to either <code>source ~/.bashrc</code> or create a new shell to get any effects of modifying the file.</p> <hr> <p>If you're wondering why the instructions and the tutorial together don't give you enough information to make this work without a lot of hassle, I think that's covered in the very top of the documentation:</p> <blockquote> <p>Pylearn2 is still undergoing rapid development. Don’t expect a clean road without bumps!</p> </blockquote> <p>And the very fact that there is no PyPI download yet implies that this really is not ready for novices to use. If you don't know enough about using Python packages (and bash basics) to muddle through on your own, there's a good chance you won't be able to use this package.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload