Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"No module named 'stem'" in Python3 on macOS

Tags:

python

tor

stem

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.

like image 892
E. Hen Avatar asked Nov 25 '25 22:11

E. Hen


1 Answers

Try below code

pip3 install stem
like image 97
Kairat Koibagarov Avatar answered Nov 27 '25 11:11

Kairat Koibagarov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!