GithubHelp home page GithubHelp logo

Unable to install about autokeras HOT 7 CLOSED

r-tensorflow avatar r-tensorflow commented on June 16, 2024
Unable to install

from autokeras.

Comments (7)

jcrodriguez1989 avatar jcrodriguez1989 commented on June 16, 2024

Hi @reActionHank , thanks for your feedback.
I am trying to reproduce your issue, so far, I am guessing you are using Windows.
So, in my Windows 10 VM I am not being able to even install keras.
Have you tried starting an R session and doing

remotes::install_github("rstudio/keras")
library("keras")
install_keras()

Is this working for you?

thanks

from autokeras.

reActionHank avatar reActionHank commented on June 16, 2024

from autokeras.

jcrodriguez1989 avatar jcrodriguez1989 commented on June 16, 2024

@reActionHank I am not being able to reproduce your issue since I am not a Windows user, and my VM needs a lot of libraries installation.
Your Error in install_keras(method = method, ... error is not an autokeras code error. If you can reproduce it by creating a new empty env and try install_keras() then you might post it as a keras issue, this would be helpful for both autokeras and keras R libraries :) .
However, as a workaround for autokeras, you could manually install the Python Auto-Keras library.
You could try activating your keras working environment (remember it must have Python 3.6) and do from prompt:

conda install pytorch torchvision -c pytorch
pip install autokeras

from autokeras.

jcrodriguez1989 avatar jcrodriguez1989 commented on June 16, 2024

@reActionHank I think what you noticed, might be an issue. Could you please reinstall autokeras remotes::install_github("jcrodriguez1989/autokeras") and re try doing install_autokeras()?
thanks!

In install_autokeras() was using reticulate::py_config() to get current Python version, and using this function initializes Python, and thus when keras::install_keras() calls reticulate::py_available() it returns TRUE and then the error you noted

> reticulate::py_available()
[1] FALSE
> reticulate::py_config()$version
[1] "3.6"
> reticulate::py_available()
[1] TRUE

from autokeras.

reActionHank avatar reActionHank commented on June 16, 2024

from autokeras.

jcrodriguez1989 avatar jcrodriguez1989 commented on June 16, 2024

thanks!
So, the bug is over. Now it is working at it should, and it is saying that the conda env is going to use Python 3.7, which is not supported by autokeras. And there it appears the new issue you are having.
I have been checking this, and Python 3.7 is being used because tensorflow R library uses this Python version if using default tensorflow version (1.3).
However, if you specify tensorflow 1.2. It will have other problems related to pytorch and etc.
To summarise, I would recommend you installing Python autokeras manually in your conda env.

from autokeras.

loheden avatar loheden commented on June 16, 2024

@jcrodriguez1989 , how do you install autokeras manually from source? I am not able to install it on MAC OS M1.

from autokeras.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.