The issue was caused by the space in my Windows username path. I was able to work around it by calling the Python interpreter using the short path (C:\Users*ALEXKA~1*...) instead of the full path with spaces. After that, creating virtual environments worked correctly.