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)
Steps to reproduce the behavior:
conda install pytorch-cpu torchvision-cpu -c pytorchpip install autokerasCollecting autokeras
Downloading https://files.pythonhosted.org/packages/c2/32/de74bf6afd09925980340355a05aa6a19e7378ed91dac09e76a487bd136d/autokeras-0.4.0.tar.gz (67kB)
100% |โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ| 71kB 1.3MB/s
Collecting scipy==1.2.0 (from autokeras)
Downloading https://files.pythonhosted.org/packages/c4/0f/2bdeab43db2b4a75863863bf7eddda8920b031b0a70494fd2665c73c9aec/scipy-1.2.0-cp36-cp36m-win_amd64.whl (31.9MB)
100% |โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ| 31.9MB 508kB/s
Requirement already satisfied: tensorflow==1.13.1 in c:\[...]\lib\site-packages (from autokeras) (1.13.1)
Collecting torch==1.0.1.post2 (from autokeras)
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)
Autokeras is installed without error.
Include the details about the versions of:
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
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
from setuptools import find_packages
setup(
name='autokeras',
packages=find_packages(exclude=('tests',)),
install_requires=['scipy==1.2.0',
'tensorflow==1.13.1',
'torch==1.1.0',
'torchvision==0.2.2.post3',
'numpy==1.16.1',
'scikit-learn==0.20.2',
'scikit-image==0.14.2',
'tqdm==4.31.0',
'imageio==2.5.0',
'requests==2.21.0'
],
version='0.4.0',
description='AutoML for deep learning',
author='DATA Lab at Texas A&M University',
author_email='[email protected]',
url='http://autokeras.com',
download_url='https://github.com/keras-team/autokeras/archive/0.3.7.tar.gz',
keywords=['AutoML', 'keras'],
classifiers=[]
)
Hi JJSeah, I'm new to Anaconda/Python so could you please tell me where I can find that setup.py file?
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
Traceback (most recent call last):
File "setup.py", line 1, in
setup(
NameError: name 'find_packages' is not defined
I solved the issue by changing the setup.py file which I have attached below. Hope this helps.
from distutils.core import setup
from setuptools import find_packagessetup(
name='autokeras',
packages=find_packages(exclude=('tests',)),
install_requires=['scipy==1.2.0',
'tensorflow==1.13.1',
'torch==1.1.0',
'torchvision==0.2.2.post3',
'numpy==1.16.1',
'scikit-learn==0.20.2',
'scikit-image==0.14.2',
'tqdm==4.31.0',
'imageio==2.5.0',
'requests==2.21.0'
],
version='0.4.0',
description='AutoML for deep learning',
author='DATA Lab at Texas A&M University',
author_email='[email protected]',
url='http://autokeras.com',
download_url='https://github.com/keras-team/autokeras/archive/0.3.7.tar.gz',
keywords=['AutoML', 'keras'],
classifiers=[]
)
Successfully install using setup.py on terminal

but prompt error when import autokeras, any idea?

@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 JJSeah,
I think you're right: I see autokeras folder resides outside AppData folder which contains site-packages. I did follow the instruction of running [python setup.py installation] in the windows command prompt, so why didn't it work? Can you tell what I did wrong? Thanks

@JasonMDSII met the same problem with you. It showed "No module named autokeras"when I tried to import autokeras in Jupyter Notebook.
Then I download the file named autokeras-master from github and I put the autokeras file under the file named "site-packages" under created environment "autokeras" .
Finally,it works.Before traning models, I suggesst you use pip to install nvidia apex to speed up because autokeras 0.4 uses pytorch to train models rather than tensorflow.

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
Have you tried conda install pytorch torchvision cudatoolkit=8 or 9 or 10.0 -c pytorch
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
1.) installing pytorch 1.0.1 and torchvision from here
2.) removing the version of numpy just installed (pip remove numpy, may be unnecessary)
3.) installing by hand (using conda install, not pip) the rest of the dependencies
4.) completely deleting the 'install_requires' list in setup.py
5.) python setup.py install (autokeras)
6.) git cloning apex, python setup.py install
results in a working version of autokeras with the only issue being a depreciation warning from sklearn:
"Cloudpickle.py, the imp module is deprecated in favor of importlib"
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.
C:\Windows\system32>systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name: Microsoft Windows Server 2016 Datacenter
OS Version: 10.0.14393 N/A Build 14393
C:\Windows\system32>python --version
Python 3.6.8
C:\Windows\system32>pip --version
pip 19.1.1 from c:\program files\python36\lib\site-packages\pip (python 3.6)
C:\Windows\system32>pip install autokeras
Collecting autokeras
Using cached https://files.pythonhosted.org/packages/c2/32/de74bf6afd09925980340355a05aa6a19e7378ed91dac09e76a487bd136d/autokeras-0.4.0.tar.gz
Collecting scipy==1.2.0 (from autokeras)
Using cached https://files.pythonhosted.org/packages/c4/0f/2bdeab43db2b4a75863863bf7eddda8920b031b0a70494fd2665c73c9aec/scipy-1.2.0-cp36-cp36m-win_amd64.whl
Collecting tensorflow==1.13.1 (from autokeras)
Using cached https://files.pythonhosted.org/packages/bf/58/34bfa8fa17f86333361172b3b502e805195180f19a7496ad0f6149138d55/tensorflow-1.13.1-cp36-cp36m-win_amd64.whl
Collecting torch==1.0.1.post2 (from autokeras)
ERROR: 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)
ERROR: No matching distribution found for torch==1.0.1.post2 (from autokeras)
C:\Windows\system32>
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!
Thanks for your hint I followed your reply and still getting the following errors
Could you please help me with that?:
running install
running bdist_egg
running egg_info
writing autokeras.egg-info\PKG-INFO
writing dependency_links to autokeras.egg-info\dependency_links.txt
writing requirements to autokeras.egg-info\requires.txt
writing top-level names to autokeras.egg-info\top_level.txt
reading manifest file 'autokeras.egg-info\SOURCES.txt'
writing manifest file 'autokeras.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
warning: install_lib: 'build\lib' does not exist -- no Python modules to install
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\EGG-INFO
copying autokeras.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying autokeras.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying autokeras.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying autokeras.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying autokeras.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist\autokeras-0.4.0-py3.7.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing autokeras-0.4.0-py3.7.egg
Removing c:\users\siorb\appdata\local\programs\python\python37\lib\site-packages\autokeras-0.4.0-py3.7.egg
Copying autokeras-0.4.0-py3.7.egg to c:\users\siorb\appdata\local\programs\python\python37\lib\site-packages
autokeras 0.4.0 is already the active version in easy-install.pth
Installed c:\users\siorb\appdata\local\programs\python\python37\lib\site-packages\autokeras-0.4.0-py3.7.egg
Processing dependencies for autokeras==0.4.0
Searching for torch==1.1.0
Reading https://pypi.org/simple/torch/
No local packages or working download links found for torch==1.1.0
error: Could not find suitable distribution for Requirement.parse('torch==1.1.0')
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.
@christian-steinmeyer
@alexsiormpas
Conda (or Anaconda) is a package manager for the python language. With it, you can create multiple environments, comparable to "Virtual Machines", in which you can install, uninstall etc. packages with certain requirements without affecting your overall system. As a result, you can install autokeras for example, without it conflicting with any other projects you might have, if you use a dedicated environment. A minimal version that you could have a look at is Miniconda. You'll find plenty of documentation and materials online.
This is the website, I mentioned. There, you'll finde these commands that should be executed:
pip install -r requirements.txt
python setup.py install
@christian-steinmeyer
Excuse me, I've downloaded the newest version of code from github, but I don't see the requirements.txt. Where is it?
@christian-steinmeyer
Excuse me, I've downloaded the newest version of code from github, but I don't see the requirements.txt. Where is it?
Good question. I am not sure. Perhaps the development team knows more about this?
Most helpful comment
Successfully install using

setup.pyon terminalbut prompt error when

import autokeras, any idea?