Python (Scripting) - Resolve "Could not import runpy module"

by
Jeremy Canfield |
Updated: November 10 2023
| Python (Scripting) articles
Let's say something like this is being returned.
Could not import runpy module
I often see this when attempting to install Python from source using make with the --enable-optimizations flag, perhaps something like this.
./configure --enable-optimizations
Almost always, simply running configure without the --enable-optimizations flag resolves the issue.
./configure
Did you find this article helpful?
If so, consider buying me a coffee over at