Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include virtual environment link to Python Documentation #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions project-ml-microservice-kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=<path-to-Python3.7> .devops
python3 -m pip install --user virtualenv
# use a command similar to this one to create environment:
python3 -m virtualenv --python=<path-to-python3.7> .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`

Expand Down