Keras 本地安装部署开发环境

1 安装Kares 1.2.0

sudo apt-get update
sudo apt-get install python
sudo apt-get install python-pip
sudo apt-get install python-dev
wget https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl
sudo pip install tensorflow-0.11.0-cp27-none-linux_x86_64.whl
sudo pip install keras==1.2.0 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

目前AutoAI的Keras 1.2.0的镜像使用的backend为TensorFlow 0.11

2 安装Ucloud Ufile SDK

wget http://sdk.ufile.ucloud.com.cn/python_sdk.tar.gz
tar zxvf python_sdk.tar.gz
cd ufile-python
sudo python setup.py install

注: UFIle SDK仅兼容request 2.1.0以下版本

3 安装Ucloud AI Inference SDK

git clone https://github.com/ucloud/uai-sdk.git
cd uai-sdk
sudo python setup.py install

4 安装Flask Http框架

sudo pip install Flask

5 安装其它依赖(客户业务相关依赖)

e.g. sudo apt-get install zlib1g-dev ...
    sudo pip install numpy pillow ...

6 Ready to Go