skip to Main Content

Debian – Python 3.11: No module named "unittest.mock"

I have tried to run a program using pytorch. It stopped with the error 'No module named "unittest.mock"' Then I wrote a minimal python program: import unittest.mock if __name__ == '__main__': print("Hello world") The same error. Documentation in https://docs.python.org/3.11/library/unittest.mock.html#module-unittest.mock. This…

VIEW QUESTION
Back To Top
Search