3

Apologies for the noob question. I am trying to run a script which uses the stem module. However, whenever I run it, I get the warning "ModuleNotFoundError: No module named 'stem'"

Even when I use Python3 in terminal this issues occurs from simply trying:

In [1]: import stem
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-e9a7ebd02e09> in <module>()
----> 1 import stem

ModuleNotFoundError: No module named 'stem'

Why is this happening? I am using macOS 10.12.6. I have also imported stem through terminal.

E. Hen
  • 31
  • 1
  • 3
  • As it says, you don’t have the `stem` module installed. You need to run `sudo pip install stem`, or if you don’t have root access, `pip install --user stem`. You can look [here](https://packaging.python.org/tutorials/installing-packages/) for more options regarding package installation. – Daniel H Nov 14 '17 at 16:05

3 Answers3

2

Try below code

pip3 install stem
Kairat Koibagarov
  • 1,385
  • 15
  • 9
2

Run It to solve the issue:

pip3 install stemming
kamran kausar
  • 4,117
  • 1
  • 23
  • 17
0

I had similar issue using python3.8, stem package was installed, had Ubuntu 20.04 system, but still kept on getting the "No module named 'stem'" error.

until I ran into stem documentation then figured I should run:

sudo apt-get install python3-stem
M.vin
  • 39
  • 7