I ran into an issue on Python 3.8 that hadn’t occurred before after installing a few packages. On Windows 7, whenever I hovered my mouse over any import in PyCharm, the following error would occur:
- Problem Event Name: BEX64
- Application Name: python.exe
- Application Version: 3.8.10150.1013
- Faulting Module Name: ucrtbase.DLL
- Faulting Module Version: 10.0.10586.9
- Exception Code: c0000417
To figure out which specific module was causing the crash, I did the following:
- Opened the Python installation folder.
- Navigated to the Lib directory.
- Renamed the site-packages folder to
_site-packagesto make sure the problem was indeed caused by one of the installed packages. - Verified that the error no longer occurred.
- Renamed the folder back to its original name, site-packages.
Next, I needed to identify the exact package. Obviously, checking each package one by one would take too long, so I first sorted the folders by modification date and started renaming them one by one. Eventually, I reached numpy, and that’s when the problem appeared — it was indeed the culprit.
At the time, I had numpy version 1.24.4 installed, which was causing the crash.
To fix the issue properly, I renamed the numpy folder back to its original name and uninstalled the package using the standard method:
pip uninstall numpy
After that, everything worked fine.
To continue using numpy on Python 3.8 and Windows 7 without crashes, I just installed a little bit older version:
pip install numpy==1.23
Clear pip cache:
pip cache purge
And check for broken requirements:
pip check
