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

2
  • 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. Commented Aug 4, 2022 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. Commented Aug 4, 2022 at 22:32

1 Answer 1

0

Try to do pip3 install docxtpl

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

Sign up to request clarification or add additional context in comments.

3 Comments

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?
try launching the program with python3 file_name.py
Did not work. Guess! what, I opened my Spyder IDE and ran the same. It ran like cham. I am surprised but happy.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.