Installing Pylearn2 for Conda

405 views
Skip to first unread message

Frederik Ebert

unread,
Jul 20, 2015, 5:34:55 PM7/20/15
to pylea...@googlegroups.com
Hello,

I would like to use pylearn2 from Python 2.7.10 |Anaconda 2.3.0 (64-bit), I have a working theano (and cuda) installation.

When trying to install pylearn2 with
 python setup.py develop

I get the follwing errors:

$ python setup.py develop --user
Using gpu device 0: GeForce GT 635M
running develop
Traceback (most recent call last):
  File "setup.py", line 85, in <module>
    '': ['*.cu', '*.cuh', '*.h'],
  File "/home/frederik/anaconda/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/home/frederik/anaconda/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/home/frederik/anaconda/lib/python2.7/distutils/dist.py", line 971, in run_command
    cmd_obj.ensure_finalized()
  File "/home/frederik/anaconda/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/develop.py", line 51, in finalize_options
    easy_install.finalize_options(self)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 274, in finalize_options
    ('install_dir','install_dir')
  File "/home/frederik/anaconda/lib/python2.7/distutils/cmd.py", line 298, in set_undefined_options
    src_cmd_obj.ensure_finalized()
  File "/home/frederik/anaconda/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/install_lib.py", line 13, in finalize_options
    self.set_undefined_options('install',('install_layout','install_layout'))
  File "/home/frederik/anaconda/lib/python2.7/distutils/cmd.py", line 302, in set_undefined_options
    getattr(src_cmd_obj, src_option))
  File "/home/frederik/anaconda/lib/python2.7/distutils/cmd.py", line 105, in __getattr__
    raise AttributeError, attr
AttributeError: install_layout

When running it as root the same errors appear.
Any idea what went wrong here?


Frederik Ebert

unread,
Jul 20, 2015, 5:47:28 PM7/20/15
to pylea...@googlegroups.com
Actually it works after adding pylearn2 to the Pythonpath, but I wonder if there is a cleaner way to do this with Anaconda.
Reply all
Reply to author
Forward
0 new messages