Hyperopt: ImportError: No module named builtins (Python 2.7)

Created on 21 Nov 2016  路  8Comments  路  Source: hyperopt/hyperopt

Running pip install future fixed this error for me.
For compatibility with Python2.7, I think the package future should be added to the install_requires in setup.py (hopefully this is also compatible with Python3?).

Note that nosetests also fails without matplotlib, but I'm not sure adding matplotlib as a dependency makes much sense.

Most helpful comment

YES, we should "pip install future". Besides, the Nvidia GPU-Accelerated Caffe2 did not correct this flaw. So, this is a must for python 2.7 environments.

All 8 comments

You're right, I addressed this in the patch above. Thanks for spotting this.

thank you

YES, we should "pip install future". Besides, the Nvidia GPU-Accelerated Caffe2 did not correct this flaw. So, this is a must for python 2.7 environments.

Thanks

thanks

thanks

I also had to pip install argparse (python 2.6.x)

I did it and it works. thank you.

Was this page helpful?
0 / 5 - 0 ratings