- deploy as virtualenv (see below)
- deploy machine learning model as a RESTful API (see subfolder)
This repo is for educational purposes.
This tutorial is for unix users, its course can be also done with Windows OS, however I don't know exactly how - googling for unix command + windows
will always help! ;)
I recommend Anaconda for starters.
If you haven't got any already.
git clone [email protected]:vuchetichbalint/python_deploy_tutorial.git
virtualenv -p python3 venv
-p python3 = python executable
venv = destination directory name
source venv/bin/activate
pip freeze
Here you should see nothing.
python tryout.py
Check its content:
cat requirements.txt
Install with:
pip install -r requirements.txt
This could last for a few minutes.
pip freeze
You should see some packages here with their version (which is identical with the requirements.txt).
python tryout.py
You should get a nice message.