aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2022-11-02 14:32:17 +0000
committerGravatar GitHub <[email protected]>2022-11-02 14:32:17 +0000
commit2cc592de7c538340bcba938b0a049bceecc94488 (patch)
treec723773ce0630c6ee1eefb4d6a93fa498712c310
parentMerge pull request #2309 from shtlrs/issue-2280-rule-keywords-discoverability (diff)
parentMerge branch 'main' into create-nomodule-tag (diff)
Merge pull request #2230 from meatballs/create-nomodule-tag
-rw-r--r--bot/resources/tags/nomodule.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/bot/resources/tags/nomodule.md b/bot/resources/tags/nomodule.md
new file mode 100644
index 000000000..adae555be
--- /dev/null
+++ b/bot/resources/tags/nomodule.md
@@ -0,0 +1,13 @@
+**ModuleNotFoundError**
+
+If you've installed a package but you're getting a ModuleNotFoundError when you try to import it, it's likely that the environment where your code is running is different from the one where you did the installation.
+
+You can read about Python environments at `!tags environments` and `!tags venv`.
+
+Common causes of this problem include:
+
+• You installed your package using `pip install ...`. It could be that the `pip` command is not pointing to the environment where your code runs. For greater control, you could instead run pip as a module within the python environment you specify:
+```
+python -m pip install <your_package>
+```
+• Your editor/ide is configured to create virtual environments automatically (PyCharm is configured this way by default).