Autokeras: How to install autokeras with tensorflow-gpu only?

Created on 9 Jul 2019  路  2Comments  路  Source: keras-team/autokeras

I am trying to install autokeras-0.4.0. I have installed tensorflow-gpu=1.3.1 and do not installed tensorflow the cpu version.

$ pip show tensorflow
$ pip show tensorflow-gpu
Name: tensorflow-gpu
Version: 1.13.1
Summary: TensorFlow is an open source machine learning framework for everyone.
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: [email protected]
License: Apache 2.0
Location: /home/baijin/Lib/anaconda3/lib/python3.6/site-packages
Requires: tensorboard, six, keras-preprocessing, absl-py, keras-applications, numpy, astor, protobuf, grpcio, gast, termcolor, wheel, tensorflow-estimator
Required-by:

But I couldn't install autokeras without tensorflow the cpu version, which is:

$ pip show autokeras-0.4.0.tar.gz
Processing ./autokeras-0.4.0.tar.gz
Requirement already satisfied: scipy==1.2.0 in ./Lib/anaconda3/lib/python3.6/site-packages (from autokeras==0.4.0) (1.2.0)
Collecting tensorflow==1.13.1 (from autokeras==0.4.0)
  Downloading https://files.pythonhosted.org/packages/77/63/a9fa76de8dffe7455304c4ed635be4aa9c0bacef6e0633d87d5f54530c5c/tensorflow-1.13.1-cp36-cp36m-manylinux1_x86_64.whl (92.5MB)
    0% |                                | 194kB 40kB/s eta 0:37:56^C
Operation cancelled by user

As you can see that I can't install autokeras under tensorflow-gpu. Is there something wrong with my operation?

Most helpful comment

Has solved by the following steps:

  1. Install tensorflow (cpu)
  2. Install autokeras
  3. Uninstall tensorflow (cpu) and tensorflow-gpu
  4. Reinstall tensorflow-gpu

All 2 comments

Has solved by the following steps:

  1. Install tensorflow (cpu)
  2. Install autokeras
  3. Uninstall tensorflow (cpu) and tensorflow-gpu
  4. Reinstall tensorflow-gpu

I had the same issue. Using the official Docker image was the way to go.

Was this page helpful?
0 / 5 - 0 ratings