aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar D0rs4n <[email protected]>2022-07-09 02:21:45 +0200
committerGravatar GitHub <[email protected]>2022-07-09 02:21:45 +0200
commit63726189a6c07646b12aa3596fce58b4670d9591 (patch)
tree48a307be11ad3f5e2ea531b74fb7b4a2e67d1b0e
parentMerge pull request #2207 from python-discord/shenanigansd-patch-1 (diff)
parentAdd tag to use `python -m pip` to install packages (diff)
Merge pull request #2209 from python-discord/tag-dashmpip
Add tag to use `python -m pip` to install packages
-rw-r--r--bot/resources/tags/dashmpip.md11
1 files changed, 11 insertions, 0 deletions
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.