From: funilrys Date: Sat, 3 Mar 2018 19:34:10 +0000 (+0100) Subject: Update of readme_template.md X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=93748698d5e7e923888e5079d2028d8d201ec9e3;p=stevenblack-hosts.git Update of readme_template.md Please note that this patch explitly set which `pip` version to use according to the user Python version. --- diff --git a/readme_template.md b/readme_template.md index 57a7efab8..26952bfe4 100644 --- a/readme_template.md +++ b/readme_template.md @@ -43,13 +43,15 @@ To run unit tests, in the top level directory, just run: python testUpdateHostsFile.py -**Note** if you are using Python 2, please install the dependencies with: +**Note** if you are using Python 3, please install the dependencies with: - pip install -r requirements_python2.txt + pip3 install --user -r requirements.txt -**Note** if you are using Python 3, please install the dependencies with: +**Note** if you are using Python 2, please install the dependencies with: + + pip2 install --user -r requirements_python2.txt - pip install -r requirements.txt +**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user). The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible, will generate a unified hosts file based on the sources in the local `data/`