ModuleNotFoundError: No module named 'msvcrt' - how to fix?

Getting this error because the script tried to import that module which usually comes with the system.

How can I fix?

Thanks!

You are running your Travis builds on Linux VMs, msvcrt is a Windows library.

I’d avoid using msvcrt and find an alternative way of doing what you’re using the msvcrt module for if you want your script to work on multiple platforms.

1 Like

Awesome, thanks.