【问题标题】:Upgrading devel version of statsmodels升级 statsmodels 的开发版本
【发布时间】:2014-07-08 09:34:58
【问题描述】:

我有 statsmodels 0.5.0,我想升级到最新版本 0.6.0。

所以我愿意

$ git clone git://github.com/statsmodels/statsmodels.git
$ cd statsmodels
$ pip install .

但是,我得到一个错误:

error: can't copy 'statsmodels/nonparametric/_smoothers_lowess.c': doesn't exist or not a regular file

【问题讨论】:

    标签: python python-2.7 statsmodels


    【解决方案1】:

    显然解决方案是安装 Cython(我认为它已经安装了,或者 statsmodels 0.5.0 怎么可能一开始就可以工作......?!?)。 无论如何,它变成了:

    $ git clone git://github.com/statsmodels/statsmodels.git
    $ cd statsmodels
    $ pip install cython
    $ pip install .
    $ python
    Python 2.7.3 |CUSTOM| (default, Apr 11 2012, 17:52:16) 
    [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import statsmodels
    >>> statsmodels.version.full_version
    '0.6.0.dev-b472807'
    

    【讨论】:

    • 发布源分发包含生成的 c 文件,因此 cython 不需要安装 0.5.0 之类的发布。从源结帐安装需要 cython。
    • 事实上,我只是注意到它实际上在statsmodels.sourceforge.net/devel/install.html 上这么说:“你需要安装一个 C 编译器来构建 statsmodels。如果你是从 github 源而不是源构建释放,那么你还需要 Cython。”。所以我猜这是RTFM的一个例子:-/
    猜你喜欢
    • 2011-02-19
    • 2017-04-12
    • 2021-08-18
    • 2020-08-28
    • 2017-03-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-08-20
    相关资源
    最近更新 更多