I will try to be as specific as I can, although I am not sure where to start. I use Pycharm for one same project for few months now. I haven’t used it for few days and today when I opened it and tried to run code which was running few days ago, I got error that Pandas is broken. When I tried to install Pandas again, I got error which points out that pip is broken. I did no work on the code or changed any settings since using Pycharm last time. This used to happen in the past and once time I sorted it out by changing root folder in the interpreter settings (obviously not exactly same issue but appeared out of nowhere) and several times it happened because Icloud was adding some .icloud files randomly through .venv which messed up everything. Right now I can’t find any .icloud files.
So, the error I get for Pandas when I try running the code is:
ImportError: cannot import name 'ArrowExtensionArray' from 'pandas.core.arrays.arrow' (unknown location)
The error I get for pip is:
ImportError: cannot import name 'guess_lexer_for_filename' from 'pip._vendor.pygments.lexers' (unknown location)
And when I go to project settings, I can’t get a list of packages installed for current interpreter. I get the following error:
Error: Python packaging tool 'setuptools' not found
How can the whole thing just get corrupt out of a sudden, without me changing a thing??