How do i install the python packages?

how do i install the python packages


Repl link:

code snippet

Welcome to the community! There are two ways to do this.

1 - poetry

poetry is Replit’s built-in package manager. Using it adds the package to your Repl’s config and this should be used if you are making a template.
Commands:

  • poetry add - installs package
  • poetry remove - uninstalls package

2 - pip

pip is the traditional Python package manager and does work on Replit (sometimes even when poetry won’t).
Commands:

  • pip install - installs package
  • pip uninstall - uninstalls package
4 Likes

Pip documentation (pip documentation v23.1) and Poetry documentation (Introduction | Documentation | Poetry - Python dependency management and packaging made easy) for reference

2 Likes