您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

python – pip install hyperopt和hyperas失败

5b51 2022/1/14 8:22:31 python 字数 2012 阅读 590 来源 www.jb51.cc/python

我试图安装hyperopt,但是我收到以下错误: 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 se

概述

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/

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

谢谢.

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

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

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

总结

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


如果您也喜欢它,动动您的小指点个赞吧

除非注明,文章均由 laddyq.com 整理发布,欢迎转载。

转载请注明:
链接:http://laddyq.com
来源:laddyq.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


联系我
置顶