安装keras
Then, you can install Keras itself. There are two ways to install Keras:
- Install Keras from PyPI (recommended):
sudo pip install keras
If you are using a virtualenv, you may want to avoid using sudo: (在创建的tensorflow虚拟环境下安装)
pip install keras
如果提示没有权限,则增加 --user
pip install keras --user
安装opencv
sudo apt-get install python-opencv
或者
pip install opencv-python
如果提示没有权限,则增加 --user
pip install
opencv-python--user