diff options
author | 2022-11-01 09:44:33 +0000 | |
---|---|---|
committer | 2022-11-01 09:44:33 +0000 | |
commit | a18dac41d8b1943554164ce3e4144914646b2195 (patch) | |
tree | 7ff4f6ef9baa343b294dd6f5293fe23340d877d9 | |
parent | Add nomodule tag (diff) |
Address PR comments and fix typ
-rw-r--r-- | bot/resources/tags/nomodule.md | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bot/resources/tags/nomodule.md b/bot/resources/tags/nomodule.md index 12a6cf839..adae555be 100644 --- a/bot/resources/tags/nomodule.md +++ b/bot/resources/tags/nomodule.md @@ -1,15 +1,13 @@ **ModuleNotFoundError** -If you've installed a package but you're getting a ModuleNotFoundError, it's likely that the environment where your code is running is different from the one where you did the installation. +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 the the environment where your code runs. For greater control, you could instead run pip as a module within the python environment you specify: +• 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> ``` -(You may have to specify the full path to the python executable). - • Your editor/ide is configured to create virtual environments automatically (PyCharm is configured this way by default). |