升级statsmodels开发版本
我现在用的是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
1 个回答
2
看起来解决办法是安装 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'