From 1c7be15c923b599c515895e459aab8be44806c8f Mon Sep 17 00:00:00 2001 From: Jany Muong Date: Sat, 18 Feb 2023 12:25:14 +0300 Subject: [PATCH 1/2] Include venv link to Python Docs --- project-ml-microservice-kubernetes/README.md | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/project-ml-microservice-kubernetes/README.md b/project-ml-microservice-kubernetes/README.md index a5bd8fee6e..94f35b420e 100644 --- a/project-ml-microservice-kubernetes/README.md +++ b/project-ml-microservice-kubernetes/README.md @@ -25,16 +25,19 @@ You can find a detailed [project rubric, here](https://review.udacity.com/#!/rub ## Setup the Environment -* Create a virtualenv with Python 3.7 and activate it. Refer to this link for help on specifying the Python version in the virtualenv. +`Virtual Environment` - It's recommended to leverage a virtual environment whenever using Python for projects. This keeps your dependencies for each project separate and organized. Instructions for setting up a virtual environment for your platform can be found in the [python docs](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/). + +* Create a siloed virtual environment with Python 3.7 and **activate** it. You should have Python 3.7 available in your host/local machine. +Check the Python path using `which python3` ```bash -python3 -m pip install --user virtualenv -# You should have Python 3.7 available in your host. -# Check the Python path using `which python3` -# Use a command similar to this one: -python3 -m virtualenv --python= .devops +python3 -m pip install --user virtualenv +# use a command similar to this one to create environment: +python3 -m virtualenv --python= .devops source .devops/bin/activate ``` -* Run `make install` to install the necessary dependencies +> Alternatively, you could setup the virtualenv via `make setup`. [this](./Makefile) is from a directive in `Makefile`. + +- Run `make install` to install the necessary dependencies. This will install all relevant pip packages for the project. ### Running `app.py` From 2bd76345b0f85b4e5d8ab375ad193d307cca318c Mon Sep 17 00:00:00 2001 From: Jany Muong Date: Sat, 18 Feb 2023 12:28:28 +0300 Subject: [PATCH 2/2] Include venv link to Python Docs --- project-ml-microservice-kubernetes/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project-ml-microservice-kubernetes/README.md b/project-ml-microservice-kubernetes/README.md index 94f35b420e..d8bcd2e533 100644 --- a/project-ml-microservice-kubernetes/README.md +++ b/project-ml-microservice-kubernetes/README.md @@ -25,7 +25,7 @@ You can find a detailed [project rubric, here](https://review.udacity.com/#!/rub ## Setup the Environment -`Virtual Environment` - It's recommended to leverage a virtual environment whenever using Python for projects. This keeps your dependencies for each project separate and organized. Instructions for setting up a virtual environment for your platform can be found in the [python docs](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/). +`Virtual Environment` - It's recommended to leverage a virtual environment whenever using Python for projects. This keeps your dependencies for each project separate and organized. Instructions for setting up a virtual environment for your platform can be found in the [Python docs](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/). * Create a siloed virtual environment with Python 3.7 and **activate** it. You should have Python 3.7 available in your host/local machine. Check the Python path using `which python3`