0

Technically this is a duplicate of How can I install Python modules programmatically / through a Python script?, but the answer to that question is a little too specific and outdated anyway.

I'd like my Python program to be able to download and install its dependencies with pip without user input (further than a "do you want to install this" anyhow). What's the recommended way to go about this?

Community
  • 1
  • 1
Schilcote
  • 2,344
  • 1
  • 17
  • 35
  • Doesn't the second answer to that question work for you? – 0xc0de May 15 '15 at 03:29
  • @0xc0de Didn't see that one. Still, it's not very nice code and I'd like a more... uhh, maybe canonical solution. – Schilcote May 15 '15 at 04:03
  • I personally doubt that the requirement 'without user input' will have or be encouraged to have a 'canonical' solution. I personally don't like scripts installing things (even if they are modules), and would really like the confirmation prompts. – 0xc0de May 15 '15 at 06:37
  • @0xc0de I did say there'd be confirmation messages. – Schilcote May 15 '15 at 17:06

0 Answers0