首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >pip安装hyperopt和hyperas失败

pip安装hyperopt和hyperas失败
EN

Stack Overflow用户
提问于 2016-03-14 02:20:53
回答 1查看 5.9K关注 0票数 6

我试图安装hyperopt,但是我得到了以下错误:

代码语言:javascript
复制
Collecting hyperopt
Using cached hyperopt-0.0.2.tar.gz
Complete output from command python setup.py egg_info:
DEBUG:root:distribute_setup.py not found, defaulting to system setuptools
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-gmhldfe7/hyperopt/setup.py", line 119, in <module>
    if package_data is None: package_data = find_package_data(packages)
  File "/tmp/pip-build-gmhldfe7/hyperopt/setup.py", line 102, in find_package_data
    for subdir in find_subdirectories(package):
  File "/tmp/pip-build-gmhldfe7/hyperopt/setup.py", line 73, in find_subdirectories
    subdirectories = os.walk(package_to_path(package)).next()[1]
AttributeError: 'generator' object has no attribute 'next'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-gmhldfe7/hyperopt/

我在做超音时也犯了同样的错误。但是,我可以通过使用pip命令成功地安装ggplot。我使用的是Ubuntu14.04和Python3.5。

谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-03-14 03:03:43

这是hyperopt中的一个bug。generator.next被重命名为generator.__next__,可以用Python3中的next(generator)调用它。

下面是详细说明更改的the PEP

看起来它是在主人那里修好的,但从来没有发布过。通过执行以下操作,您可以从git (也就是github )安装:

代码语言:javascript
复制
pip install git+https://github.com/hyperopt/hyperopt.git
票数 12
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35978549

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档