From 625ea0fd8caed552a6925f20b78cb101402a7323 Mon Sep 17 00:00:00 2001 From: Janine vN Date: Fri, 8 Jul 2022 19:24:03 -0400 Subject: Add tag to use `python -m pip` to install packages --- bot/resources/tags/dashmpip.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 bot/resources/tags/dashmpip.md diff --git a/bot/resources/tags/dashmpip.md b/bot/resources/tags/dashmpip.md new file mode 100644 index 000000000..4c9f2870e --- /dev/null +++ b/bot/resources/tags/dashmpip.md @@ -0,0 +1,11 @@ +--- +embed: + title: "Install packages with `python -m pip`" +--- +When trying to install a package via `pip`, it's recommended to invoke pip as a module: `python -m pip install your_package`. + +**Why would we use `python -m pip` instead of `pip`?** +Invoking pip as a module ensures you know *which* pip you're using. This is helpful if you have multiple Python versions. You always know which Python version you're installing packages to. + +**Note** +The exact `python` command you invoke can vary. It may be `python3` or `py`, ensure it's correct for your system. -- cgit v1.2.3