2013-08-02 27 views
-1

我想在Windows中安裝Pylearn2軟件包(Pylearn2)。我正在使用Spyder/Anaconda IDE來使用python。pylearn2在Windows中 - 麻煩setup.py

在源文件中有一個名爲setup.py的腳本。然而,當我嘗試運行它,我得到以下錯誤信息:

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] 
or: setup.py --help [cmd1 cmd2 ...] 
or: setup.py --help-commands 
or: setup.py cmd --help 

error: no commands supplied` 

而且解釋停止工作。下面是setup.py腳本里面的代碼:

from setuptools import setup, find_packages 

setup(
    name='pylearn2', 
    version='0.1dev', 
    packages=find_packages(), 
    description='A machine learning library build on top of Theano.', 
    license='BSD 3-clause license', 
    long_description=open('README.rst').read(), 
    install_requires=['numpy>=1.5', 'theano', 'pyyaml', 'argparse'], 
    package_data={ 
    '': ['*.txt', '*.rst', '*.cu', '*.cuh', '*.h'], 
    }, 
) 

我真的不`噸知道該怎麼辦。我搜索了網頁,但沒有找到太多幫助。 請幫忙,如果你可以。

+1

python setup.py build && python setup.py install - 常見用法可能在這裏重複:http://stackoverflow.com/a/1472014/2620328 – sihrc

回答

0

通常爲setup.py:

>python setup.py build && python setup.py install 

完整的文檔:更詳細的信息!