In my case (Windows 11), the problem was caused by the path to the virtual environment being too long. The same fresh installation of python 3.13 in a virtual environment caused the problem (if the paths were too long) and did not cause it if the paths were shorter. In both cases, libraries installed via pip (in my case it was pandas, sklearn, numpy) worked fine regardless of path length.