在windows10上为python安装ggplot 64
问题描述:
我正在使用python 2.7并安装了anaconda安装。在windows10上为python安装ggplot 64
虽然我是新手用户,但一切工作正常。
然后我决定使用ggplot。 (yhat包蟒蛇)
指示说 pip install -U ggplot
我有问题,它开始安装许多软件包,包括ggplot但随后的statsmodels包给予以下消息时停止:
c:\Python27\Scripts>pip install -U ggplot
Collecting ggplot
Using cached ggplot-0.6.8.tar.gz
Requirement already up-to-date: six in c:\python27\lib\site-packages (from ggplot)
Collecting statsmodels (from ggplot)
Using cached statsmodels-0.6.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "c:\users\appdata\local\temp\pip-build-8ce3lv\statsmodels\setup.py", line 393, in <module>
install_requires) = check_dependency_versions(min_versions)
File "c:\users\appdata\local\temp\pip-build-8ce3lv\statsmodels\setup.py", line 119, in check_dependency_versions
if not (StrictVersion(strip_rc(npversion)) >= min_versions['numpy']):
File "C:\Python27\lib\distutils\version.py", line 40, in __init__
self.parse(vstring)
File "C:\Python27\lib\distutils\version.py", line 107, in parse
raise ValueError, "invalid version number '%s'" % vstring
ValueError: invalid version number '1.10.0.post2'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\appdata\local\temp\pip-build-8ce3lv\statsmodels
我在SO和gitHub上读了很多问题,但除了它是版本控制问题之外没有任何其他问题明确
我试图升级软件包,但是失败了。
任何帮助表示赞赏。
答
根据对numpy邮件列表和numpy问题跟踪器的讨论,numpy 1.10将很快在版本号中没有post
。
statsmodels的版本扫描不能处理post
部分,因为它过去从未被任何科学或数据分析相关软件包使用过。
现在唯一的解决方案是编辑statsmodels的setup.py,或者切换到没有post
版本号的numpy版本,或者在numpy中编辑版本号。
https://github.com/statsmodels/statsmodels/issues/2645 https://github.com/numpy/numpy/issues/6431
答
使用conda install statsmodels
。适用于Windows 10 64bit我的工作
请您澄清如何编辑setup.py的statmodels?我害怕在编辑时破坏东西 – stackunderflow
我最终使用conda安装,它与我完全合作。这里是答案http://stackoverflow.com/a/29314525/3404841 – stackunderflow