Can't install Django on Windows 10

IOError: [Errno 22] invalid mode ('wb') or filename: ...django\\tests/staticfiles_tests/apps/test/static/test/?.txt'

I’m getting this error every time I try to pip install django. Any ideas? It seems to be the questionmark as the filename that’s causing the issue.

Debugging on Windows is really difficult for most devs, as Windows inner working are closed source.

I would recommend to install a Windows Subsystem for Linux (WSL), and getting used to developing on there. It’s very easy.

Here is how to install WSL: Install WSL | Microsoft Docs

The docs don’t mention it, but you need to have admin privileges and run powershell as an admin.

I totally agree with that. I just like to point that wsl 2 is fairly better than version 1. Use VS code with pylance and you will have a great development stack.