简体   繁体   English

使用 Anaconda 安装 Autokeras

[英]Autokeras installation with Anaconda

I have problems with installing Autokeras with Anaconda.我在使用 Anaconda 安装 Autokeras 时遇到问题。

  • I downgraded python to 3.6我将 python 降级到 3.6
  • I installed pytorch and downgraded to version 0.4.1我安装了pytorch并降级到0.4.1版
  • I downgraded numpy to 1.14.5我将 numpy 降级到 1.14.5
  • I installed visual studio C++ build tool我安装了 Visual Studio C++ 构建工具

But now I get the error that tensorflow will require max numpy version 1.14.5.但是现在我收到了 tensorflow 需要最大 numpy 版本 1.14.5 的错误。 but autokeras will upgrade numpy to 1.15.4 and it failed to build the wheel for lws但是 autokeras 会将 numpy 升级到 1.15.4 并且无法为 lws 构建轮子

After every step ther was an error.在每一步之后都有一个错误。 Is there a simple, straight forward way to install Autokeras on Annaconda (Win)?是否有一种简单直接的方法可以在 Annaconda (Win) 上安装 Autokeras?

Thanks for your help谢谢你的帮助

I have Windows 10, Anaconda 2019.10 and Python 3.7.5.我有 Windows 10、Anaconda 2019.10 和 Python 3.7.5。 In my case, I get the error ERROR: No matching distribution found for torch==1.0.1.post2 (from autokeras) on Windows 10 when trying to pip install autokeras as indicated by the official documentation.在我的情况下,当我按照官方文档的指示尝试pip install autokeras时,我收到错误ERROR: No matching distribution found for torch==1.0.1.post2 (from autokeras) on Windows 10。

Then I try to get the source code from https://github.com/keras-team/autokeras and run python setup.py install .然后我尝试从https://github.com/keras-team/autokeras获取源代码并运行python setup.py install It successfully installs autokeras for me.它成功地为我安装了 autokeras。

I had the same issues, using Windows 10 Pro.我有同样的问题,使用 Windows 10 专业版。 I installed VMware Workstation 15 Player, installed lubuntu as the guest OS, installed anaconda onto that, created a conda virtual environment, and was able to install autokeras as per https://autokeras.com/start/ .我安装了 VMware Workstation 15 Player,安装了 lubuntu 作为来宾操作系统,在其上安装了 anaconda,创建了 conda 虚拟环境,并且能够按照https://autokeras.com/start/安装 autokeras。 The autokeras installation gave a numpy version error, but seems to work. autokeras 安装给出了一个 numpy 版本错误,但似乎有效。 This might not be the answer you are looking for.这可能不是您正在寻找的答案。

Another answer you might not be looking for is to use Docker, as per https://autokeras.com/docker/ .您可能不会寻找的另一个答案是使用 Docker,如https://autokeras.com/docker/ Once I'd changed "$(pwd)":/app to "$(pwd):/app" in the example, this also seems to work.一旦我在示例中将 "$(pwd)":/app 更改为 "$(pwd):/app",这似乎也有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM