I presume you’re using windows. See the pathlib docs:
Pure paths are useful in some special cases; for example:
- If you want to manipulate Windows paths on a Unix machine (or vice versa). You cannot instantiate a
WindowsPathwhen running on Unix, but you can instantiatePureWindowsPath.