在 Windows 10 上安装 autokeras 时出错

Error when install autokeras on Windows 10

我尝试在我的 windows10 计算机上安装 autokeras (pip install autokeras),但出现以下错误:

tensorflow-gpu 1.9.0 has requirement tensorboard<1.10.0,>=1.9.0, but you'll have tensorboard 1.10.0 which is incompatible.
tensorflow 1.10.0 has requirement numpy<=1.14.5,>=1.13.3, but you'll have numpy 1.15.4 which is incompatible.
Installing collected packages: scikit-learn, unidecode, pandas, inflect, tqdm, imageio, tensorboard, tensorflow, opencv-python, lightgbm, nltk, lws, joblib, librosa, networkx, cloudpickle, toolz, dask, PyWavelets, scikit-image, chardet, idna, urllib3, requests, autokeras
Found existing installation: scikit-learn 0.18.1
Cannot uninstall 'scikit-learn'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

我的 python 是 3.6.5,numpy 1.12.0 & 1.15.4,tensorboard 1.9.0,tensorflow-gpu 1.9.0。
tensorflow的gpu版本是autokeras的问题吗?

如果有人能帮我解决这个问题,我将不胜感激。

我在 linux 上安装 tensorflow-gpu 时遇到了类似的问题。您的 tensorboard 和 numpy 太新了,这意味着它们不兼容。

最好的办法是设置一个虚拟环境(使用 virtualenv),安装 tensorboard 1.9.0 和 numpy 1.13.3 并为虚拟环境指定它们。 运行 虚拟环境并在那里安装 tf-gpu,它应该可以工作。