From 2f424e34447fb2469a3725b0d62deaa0399ee6fd Mon Sep 17 00:00:00 2001 From: Benjamin Rood Date: Sun, 4 Mar 2018 11:20:28 +1300 Subject: [PATCH 1/2] Change `sudo pip install` to `pip install --user` You never need elevated permissions for pip. To install at the user level, use the `--user` flag. There is too much wanton use of `sudo` online, we all need to collectively be more careful about the instructions we provide to users. Thanks for this linter! --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 1f5dac1..d560f04 100644 --- a/README.rst +++ b/README.rst @@ -54,7 +54,7 @@ Alternatively using pip, the Python package manager: .. code:: bash - sudo pip install yamllint + pip install --user yamllint Usage ^^^^^ From f1ce79e91374d3d7fa80887c72a56e30c6d35cf0 Mon Sep 17 00:00:00 2001 From: Benjamin Rood Date: Tue, 6 Mar 2018 20:04:28 +1300 Subject: [PATCH 2/2] Don't need sudo for pip For global installs, use the `--user` flag instead. --- docs/quickstart.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 3365877..fb07234 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -27,7 +27,7 @@ Alternatively using pip, the Python package manager: .. code:: bash - sudo pip install yamllint + pip install --user yamllint If you prefer installing from source, you can run, from the source directory: