0

I have installed pip install docxtpl with no errors. Previously I have ran programs with no erros. But I am getting this weird error of no module found. Don't know what to do?

Installation: enter image description here

Nomodule error on CMD prompt when ran a py scrript enter image description here

Mainland
  • 4,110
  • 3
  • 25
  • 56
  • 1
    Usually this error is caused by having several different installations of Python on your system, and the `pip` and `python` commands don't agree on which version to use. So `pip` might have installed the module for, say, Python 3.8, but your `python` command is using Python 3.9. – John Gordon Aug 04 '22 at 21:49
  • @JohnGordon your comment made so sense. Yes! even I got this doubt. I am installing by saying `pip3` but I don't know if I am calling right one when I say just `python file_name.py` in the CMD. Guess! what, I opened my Spyder IDE and ran the same. It ran like cham. I am surprised but happy. – Mainland Aug 04 '22 at 22:32

1 Answers1

0

Try to do pip3 install docxtpl

You can also use pip list or pip3 list to see all installed modules

T0w0T
  • 66
  • 7
  • Yes! I did that but did not work. Help me one thing here. I am installing on anaconda prompt and running the program on CMD as `python file_name.py`. Am I doing correct? – Mainland Aug 04 '22 at 22:03
  • try launching the program with ```python3 file_name.py``` – T0w0T Aug 04 '22 at 22:06
  • Did not work. Guess! what, I opened my Spyder IDE and ran the same. It ran like cham. I am surprised but happy. – Mainland Aug 04 '22 at 22:19