Uninstalling Default Replit Python Package Prevents Installing New Packages

The Replit package in Python is incompatible with many packages due to its specific requirements for versions of very popular packages. Unfortunately, when I uninstall this package it also uninstalls requests (It says Removing requests 2.28.2) which then stops me from adding or removing any further packages with the error ModuleNotFoundError: No module named 'requests'

Steps to reproduce:

  • Make a new Python Repl
  • Uninstall the Replit package either in the GUI or with the command poetry remove replit
  • Attempt to install or uninstall another package

Possible solutions to this:

  1. Add requests before you remove replit (poetry add requests)
  2. Try using pip to reinstall requests (pip install requests)
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.