When the name of the package does not match the name of the imported module, the wrong package is installed

Hello, auto-importing is an intended feature of UPM (Universal Package Manager). In python specifically, these guessed imports may be wrong, so you should tell it which package to import.
Example:

import pygame  #upm package(pygame-ce)

Related:


It is usually best to disable import guessing in the packager configuration in .replit file, but unfortunately this is currently broken because of a bug.


4 Likes