-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip install autokeras fails on torch ==1.1.0 #622
Comments
I have exactly the same problem with you |
Me too. |
Same problem any update? |
me too, same issue here. |
The same problem here, I am also on windows 10 and running Python 3.6.8. Any workarounds yet? I will try switching python versions if that will do anything. |
You can switch to autokeras0.3.7 & pytorch1.0.1 |
I tried this but using the pip installer it still won't go through with the error. "ERROR: Could not find a version that satisfies the requirement torch==1.0.1" it seems the issue is it is trying to pip install torch by name which does not seem to work. I also tried installing torch 1.0.1 and then trying autokeras, but still nothing |
I solved the issue by changing the setup.py file which I have attached below. Hope this helps. from distutils.core import setup setup( |
Hi JJSeah, I'm new to Anaconda/Python so could you please tell me where I can find that setup.py file? |
Hi Jason, you can download the setup.py file from this repo or just create a new python file and change the code accordingly above. You can run the python file by [python setup.py install] in your terminal to began the installation. Hope this helps! |
Hi JJSeah, thank you for your quick response. However when I run the setup.py file in my Windows 7 command prompt, I've got this error below. It seemed python couldn't recognize the function setup(name='autokeras', ....). Do you have any ideas how to resolve this? D:\Users\jason>python setup.py install |
|
@yckoong, thanks for the tips as I was able to run the setup.py file and saw that autokeras installed in my anaconda base environment. I also got exactly the same error No module named 'autokeras' when importing it in Jupyter notebook. |
it might be because you didnt install the models into conda but in your computer environment |
Hi Phier77, thanks for your great workaround! It worked!!! Would you mind clarifying how you also managed to have folders autokeras.egg-info and autokeras-0.4.0-py3.6.egg in your site-packages? should I move my folder autokeras.egg-info into my site-packages directory? Is cudatoolkit for gpu laptop? Mine one is cpu only so no need to install pytorch torchvision cudatoolkit=8? Thanks |
#639 brought up a good point. Not sure if switching the URL to 0.4.0 solves any of the issues discussed here, but making that correction in the setup.py file along with starting from a fresh anaconda environment (python==3.6) and doing the following: 1.) installing pytorch 1.0.1 and torchvision from here results in a working version of autokeras with the only issue being a depreciation warning from sklearn: Really hope that helps someone! |
I have installed 1.13.1 tensorflow-gpu, and when i pip install autokeras, it downloads tensorflow again... |
I am seeing this error on Windows Server 2016 with Python 3.6.8 when following the standard installation instructions that utilize pip instead of setup.py.
|
|
If you have a clean (conda) environment, clone the current state of the git project, and install all requirements from it, it should work. Details can be found on the website under "getting started" > without pip. |
|
@AlexSiormpas This is the website, I mentioned. There, you'll finde these commands that should be executed:
|
@christian-steinmeyer |
Good question. I am not sure. Perhaps the development team knows more about this? |
Bug Description
When executing
pip install autokeras
, I get the following message:Could not find a version that satisfies the requirement torch==1.0.1.post2 (from autokeras) (from versions: 0.1.2, 0.1.2.post1) No matching distribution found for torch==1.0.1.post2 (from autokeras)
Reproducing Steps
Steps to reproduce the behavior:
conda install pytorch-cpu torchvision-cpu -c pytorch
pip install autokeras
Expected Behavior
Autokeras is installed without error.
Setup Details
Include the details about the versions of:
Additional context
The text was updated successfully, but these errors were encountered: