Installing additional packages

How do you import additional packages into a python program? If I wanted something from how would I put it into my program?

Replit Profile:

Hi @AI2010 , welcome to the forums!
You can enter poetry add package_name to install the package from PyPi into your repl. Change package_name to the name of the package, like flask or numpy.
Hope this helps!

You can use the replit editor Packages tab (find it through tools or new tab).

However, it is probably best to use poetry add and poetry remove instead, to familiarize yourself with the package manager. (It is not recommended to use pip)

The pyproject.toml file has a list of your project’s dependencies (and other things). poetry show command also gives a list of dependencies.

The package tab is known to be unreliable, so poetry would be best.

1 Like

Thanks a lot this really helped.

you can mark the post that helped you the most as the solution

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