pathlib was new in Python 3.4,what version of Python do you use?
Remember that import is case sensitive,so if i test can make your error.
Remember that import is case sensitive,so if i test can make your error.
>>> from pathlib import path Traceback (most recent call last): File "<interactive input>", line 1, in <module> ImportError: cannot import name 'path' from 'pathlib' (C:\Python310\lib\pathlib.py # It's like this >>> from pathlib import Path >>>