I am new to Python and have inherited an existing program and unfortunately the people that had been working in the environment had left the company before I accepted the position. I am wondering how to clear this error.
The problem is that
pathlib has been downloaded from PyPI and it’s hiding the version that’s now in the standard library.
The solution is to do what the message says and remove it:
conda remove pathlib
There’s an answer on StackOverflow about this:
How to convert python file to exe? The ‘pathlib’ package is an obsolete backport of a standard library package and is incompatible with PyInstaller - Stack Overflow