Skip to content

Commit

Permalink
development_setup.md update
Browse files Browse the repository at this point in the history
development_setup.md updated to use install_requirements.sh.

See microsoft#158:

> Use conda rather than pip packages when possible (as recommended in AML docs).
> Dev environment is hence also constrained to conda (no more pip install -r requirements.txt).
  • Loading branch information
satonaoki authored Feb 10, 2021
1 parent 31512d3 commit dfbab6a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/development_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@ In order to configure the project locally, create a copy of `.env.example` in th

[Install the Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli). The Azure CLI will be used to log you in interactively.

Create a virtual environment using [venv](https://docs.python.org/3/library/venv.html), [conda](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html) or [pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv).
Install [conda](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html).

Here is an example for setting up and activating a `venv` environment with Python 3:
Install the required Python modules.

```
python3 -mvenv .venv
source .venv/bin/activate
. environment_setup/install_requirements.sh
```

Install the required Python modules in your virtual environment.
`install_requirements.sh` create and activate a new conda environment with required Python modules.

```
pip install -r environment_setup/requirements.txt
conda env create -f diabetes_regression/ci_dependencies.yml
conda activate mlopspython_ci
```

### Running local code
Expand Down

0 comments on commit dfbab6a

Please sign in to comment.