Skip to content

vuchetichbalint/python_deploy_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py3 status

python_deploy_tutorial

  • deploy as virtualenv (see below)
  • deploy machine learning model as a RESTful API (see subfolder)

This repo is for educational purposes.

Homework

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! ;)

1.) Install a python interpreter!

I recommend Anaconda for starters.

2.) Install a git-based VCS!

If you haven't got any already.

3.) Clone this repo!

git clone [email protected]:vuchetichbalint/python_deploy_tutorial.git

4.) Create a virual environment!

virtualenv -p python3 venv

-p python3 = python executable
venv = destination directory name

5.) Activate the virtualenv!

source venv/bin/activate

6.) Check which python packages have been installed.

pip freeze

Here you should see nothing.

7.) Try to run tryout.py script.

python tryout.py

8.) Install requirements.txt!

Check its content:

cat requirements.txt

Install with:

pip install -r requirements.txt

This could last for a few minutes.

9.) Check which python packages have been installed.

pip freeze

You should see some packages here with their version (which is identical with the requirements.txt).

10.) Try to run tryout.py script.

python tryout.py

You should get a nice message.

About

Deploy python scripts to servers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published