How to Solve NameError: name 'Path' is not defined -- path

Solution: Import the 'Path' module

To Solve the error, add the following line to the top of your code.

from path import Path

 

For more information:
Python path Path