From 78766057d6259a11255f48ec74e404ac4cdde6db Mon Sep 17 00:00:00 2001 From: Brian Kroth Date: Fri, 28 Aug 2020 21:33:22 +0000 Subject: [PATCH] Merged PR 422753: python documentation fixups python documentation fixups from https://github.com/microsoft/MLOS/pull/12 and !422716 --- documentation/01-Prerequisites.md | 16 ++++++++++++---- documentation/CodingStandard.md | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/documentation/01-Prerequisites.md b/documentation/01-Prerequisites.md index 5167e71713..c7f1700da7 100644 --- a/documentation/01-Prerequisites.md +++ b/documentation/01-Prerequisites.md @@ -149,21 +149,29 @@ Be sure to include support for .Net Core, C++, CMake ### Linux Python Install -1. Install Python 3.x +1. Install Python 3.7 ```sh - sudo apt -y install python3 python3-pip + # We need to add a special apt repository for Python 3.7 support: + sudo apt-get -y install software-properties-common apt-transport-https + sudo add-apt-repository -y ppa:deadsnakes/ppa + sudo apt-get update + sudo apt-get -y install python3.7 ``` 2. Install MLOS Python dependencies: ```sh # Also add some dependencies needed by some of the pip modules - sudo apt -y install build-essential libfreetype-dev unixodbc-dev + sudo apt-get -y install python3-pip python3.7-dev \ + build-essential libfreetype-dev unixodbc-dev ``` ```sh - pip3 install -r source/Mlos.Python/requirements.txt + python3.7 -m pip install --upgrade pip + python3.7 -m pip install setuptools + + python3.7 -m pip install -r source/Mlos.Python/requirements.txt ``` ### Windows Python Install diff --git a/documentation/CodingStandard.md b/documentation/CodingStandard.md index 1cdfb67fa5..99a8821264 100644 --- a/documentation/CodingStandard.md +++ b/documentation/CodingStandard.md @@ -28,7 +28,7 @@ We use [`pylint`](https://pypi.org/project/pylint/) for Python code to mostly fo To run it locally, issues the following commands: -1. One time instal of the `pylint` tool: +1. One time install of the `pylint` tool: ```shell pip install pylint