Error: No module named ‘fcntl’

The fcntl module is not available on Windows. The functionality it exposes does not exist on that platform.

If you’re trying to lock a file, there are some other Python modules available which provide that functionality. One I’ve seen referenced in other answers is portalocker.

Leave a Comment