我试图安装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 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/
Run Code Online (Sandbox Code Playgroud)
并且在安装hyperas时我得到了同样的错误.但我可以使用pip命令成功安装ggplot .我使用的是Ubuntu 14.04和Python 3.5.
谢谢.
dre*_*ver 11
这是一个错误hyperopt.generator.next重命名为generator.__next__可以next(generator)在Python3中调用.
以下是PEP详细说明了这一变化.
看起来它是在master中修复但从未发布过.您可以通过执行以下操作从git(也就是github)安装:
pip install git+https://github.com/hyperopt/hyperopt.git
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3258 次 |
| 最近记录: |