Imports in python are not installed automatically

I get the same error as the one described in this post Package operation failed in package manager is describing when I run poetry update. Basically, replit is not installing the packages from the package manager (although they are listed there as installed), but the app works when I install them with “pip3 install …” from the shell. Again, this happens randomly after one or two days since the last execution of the app.