---
# System prepended metadata

title: autokeras installation (window gpu/cpu)

---

#  autokeras installation (window gpu/cpu)
## 0. Install [**VC_redist.x64**](https://github.com/gj7huang/py_36_base)
- Windows 10
- GPU drvier: 441.22
- CUDA: 10.2
- cuDNN: 7.6.5

[.](https://www.nvidia.com/en-us/drivers/unix/)
[.](https://www.advancedclustering.com/act_kb/installing-nvidia-drivers-rhel-centos-7/)


## 1. Using to create new env
### 正常安裝是這樣啦...
```bash
# ! conda create -n autokeras python=3.6 正常安裝

  # certifi            pkgs/main/win-64::certifi-2020.6.20-py36_0
  # pip                pkgs/main/win-64::pip-20.2.2-py36_0
  # python             pkgs/main/win-64::python-3.6.12-h5500b2f_2
  # setuptools         pkgs/main/win-64::setuptools-49.6.0-py36_0
  # sqlite             pkgs/main/win-64::sqlite-3.33.0-h2a8f88b_0
  # vc                 pkgs/main/win-64::vc-14.1-h0510ff6_4
  # vs2015_runtime     pkgs/main/win-64::vs2015_runtime-14.16.27012-hf0eaf9b_3
  # wheel              pkgs/main/noarch::wheel-0.35.1-py_0
  # wincertstore       pkgs/main/win-64::wincertstore-0.2-py36h7fe50ca_0
  # zlib               pkgs/main/win-64::zlib-1.2.11-h62dcd97_4
  
```

### 不正常安裝
- 手動在資料夾(D:\Users<NT帳號>\AppData\Local\Continuum\anaconda3\envs)底下新增虛擬環境名稱(例如: autokeras)
- 下載 [python 3.6 base env](https://github.com/gj7huang/py_36_base)
- 然後指令:
```bash
! activate autokeras
! cd py_36_base-master
! conda install --use-local certifi-2020.6.20-py36_0.tar.bz2 pip-20.2.2-py36_0.tar.bz2 python-3.6.12-h5500b2f_2.tar.bz2 setuptools-49.6.0-py36_0.tar.bz2 sqlite-3.33.0-h2a8f88b_0.tar.bz2 vc-14.1-h0510ff6_4.tar.bz2 vs2015_runtime-14.16.27012-hf0eaf9b_3.tar.bz2 wheel-0.35.1-py_0.tar.bz2 wincertstore-0.2-py36h7fe50ca_0.tar.bz2 zlib-1.2.11-h62dcd97_4.tar.bz2 
```
  
## 2. Install tensorflow2.3, tensorflow-gpu2.3 and [autokeras](https://github.com/keras-team/keras-tuner)
### 正常安裝是這樣啦…zzz
```bash
! pip install -U keras-tuner
! git clone https://github.com/keras-team/keras-tuner.git
! cd keras-tuner
! pip install .
```
### 不正常安裝
- 下載[pip package about autokeras](https://github.com/gj7huang/tf_23_auto)
- 另外下載 [tensorflow-gpu 2.3.0](https://files.pythonhosted.org/packages/9f/23/5d5a18870f4be65faee538aeb28276af809f6442a3a5dc6f7e58d7f70bd6/tensorflow_gpu-2.3.0-cp36-cp36m-win_amd64.whl), [tensorflow 2.3.0](https://files.pythonhosted.org/packages/8b/5d/b6ecf195081353e5dfbe71c628592cbc8b8eb5b9202bc35228fc6d2b702d/tensorflow-2.3.0-cp36-cp36m-win_amd64.whl)，放進 tf_23_auto-master資料夾中
- 下指令:
```bash
! activate autokeras
! cd tf_23_auto-master
! pip install absl_py-0.10.0-py3-none-any.whl astunparse-1.6.3-py2.py3-none-any.whl cachetools-4.1.1-py3-none-any.whl certifi-2020.6.20-py2.py3-none-any.whl chardet-3.0.4-py2.py3-none-any.whl colorama-0.4.3-py2.py3-none-any.whl future-0.18.2.tar.gz gast-0.3.3-py2.py3-none-any.whl google_auth-1.21.1-py2.py3-none-any.whl google_auth_oauthlib-0.4.1-py2.py3-none-any.whl google_pasta-0.2.0-py3-none-any.whl grpcio-1.32.0-cp36-cp36m-win_amd64.whl h5py-2.10.0-cp36-cp36m-win_amd64.whl idna-2.10-py2.py3-none-any.whl importlib_metadata-1.7.0-py2.py3-none-any.whl joblib-0.16.0-py3-none-any.whl keras-tuner-1.0.1.tar.gz Keras_Preprocessing-1.1.2-py2.py3-none-any.whl Markdown-3.2.2-py3-none-any.whl numpy-1.18.5-cp36-cp36m-win_amd64.whl oauthlib-3.1.0-py2.py3-none-any.whl opt_einsum-3.3.0-py3-none-any.whl packaging-20.4-py2.py3-none-any.whl protobuf-3.13.0-cp36-cp36m-win_amd64.whl pyasn1-0.4.8-py2.py3-none-any.whl pyasn1_modules-0.2.8-py2.py3-none-any.whl pyparsing-2.4.7-py2.py3-none-any.whl requests-2.24.0-py2.py3-none-any.whl requests_oauthlib-1.3.0-py2.py3-none-any.whl rsa-4.6-py3-none-any.whl scikit_learn-0.23.2-cp36-cp36m-win_amd64.whl scipy-1.4.1-cp36-cp36m-win_amd64.whl setuptools-50.3.0-py3-none-any.whl six-1.15.0-py2.py3-none-any.whl tabulate-0.8.7-py3-none-any.whl tensorboard-2.3.0-py3-none-any.whl tensorboard_plugin_wit-1.7.0-py3-none-any.whl tensorflow-2.3.0-cp36-cp36m-win_amd64.whl tensorflow_estimator-2.3.0-py2.py3-none-any.whl tensorflow_gpu-2.3.0-cp36-cp36m-win_amd64.whl tensorflow_gpu_estimator-2.3.0-py2.py3-none-any.whl termcolor-1.1.0.tar.gz terminaltables-3.1.0.tar.gz threadpoolctl-2.1.0-py3-none-any.whl tqdm-4.49.0-py2.py3-none-any.whl urllib3-1.25.10-py2.py3-none-any.whl Werkzeug-1.0.1-py2.py3-none-any.whl wheel-0.35.1-py2.py3-none-any.whl wrapt-1.12.1.tar.gz zipp-3.1.0-py3-none-any.whl
```
- 測試 [code](https://autokeras.com/)
```bash
! cd tf_23_auto-master
! python autokeras.py
```










