python – pip install hyperopt和hyperas失败

python – pip install hyperopt和hyperas失败,第1张

概述我试图安装hyperopt,但是我收到以下错误: Collecting hyperoptUsing cached hyperopt-0.0.2.tar.gzComplete output from command python setup.py egg_info:DEBUG:root:distribute_setup.py not found, defaulting to system se 我试图安装hyperopt,但是我收到以下错误:
Collecting hyperoptUsing cached hyperopt-0.0.2.tar.gzComplete output from command python setup.py egg_info:DEBUG:root:distribute_setup.py not found,defaulting to system setuptoolsTraceback (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/

并且在安装hyperas时我得到了同样的错误.但是我可以使用pip命令成功安装ggp​​lot.我使用的是Ubuntu 14.04和Python 3.5.

谢谢.

@H_502_9@解决方法 这是hyperopt中的一个错误. generator.next被重命名为generator .__ next__,可以在python3中使用next(生成器)调用.

这是the PEP详细说明了这一变化.

看起来它是在master中修复但从未发布过.您可以通过执行以下 *** 作从git(也就是github)安装:

pip install git+https://github.com/hyperopt/hyperopt.git
总结

以上是内存溢出为你收集整理的python – pip install hyperopt和hyperas失败全部内容,希望文章能够帮你解决python – pip install hyperopt和hyperas失败所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1206842.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-04
下一篇 2022-06-04

发表评论

登录后才能评论

评论列表(0条)

保存