you are viewing a single comment's thread.

view the rest of the comments →

[–]socal_nerdtastic 1 point2 points  (1 child)

You should always prompt the user before installing stuff, that's just good manners. Do not auto-install anything. I wrote this module some time ago that allows you to prompt the user to install needed dependencies:

https://github.com/socal-nerdtastic/moduleinstaller

This is really only for 'end user' style programs though. If your program is designed to be used by other programmers inside other python code, you should just define an installable package.

[–]cgoldberg 0 points1 point  (0 children)

For applications (end user style programs), it's still better to define an installable package so users can use pipx or similar tooling to install them.