Run TensorFlow2 on a VPS server
Preparation
- Sakura VPS
- Python 3.6.0
- TensorFlow 2.3.0
- Apache2
See below for preparations for using Flask in production.
Run Apache2 + WSGI + Flask
Install TensorFlow
pip update
$ pip3 install --upgrade pip
Install TensorFlow
python3 -m pip install tensorflow
Verification
$ python3 -c "import tensorflow as tf; print( tf.__version__ )"
At the time of writing this article, 2.3.0 is back.
Referenced site
- [Install TensorFlow on Ubuntu [for machine learning system release]](https://self-development.info/ubuntu%E3%81%ABtensorflow%E3%82%92%E3%82%A4%E3% 83% B3% E3% 82% B9% E3% 83% 88% E3% 83% BC% E3% 83% AB% E3% 81% 99% E3% 82% 8B% E3% 80% 90% E6% A9% 9F% E6% A2% B0% E5% AD% A6% E7% BF% 92% E3% 82% B7% E3% 82% B9% E3% 83% 86% E3% 83% A0% E5% 85% AC / )