Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82208
| From | "hugocoolens" <hugocoolens@1:249/999.remove-cdt-this> |
|---|---|
| Subject | [newbie] how to make program suggest to install missing modules |
| Message-ID | <54866F2E.1746.complang@piz.noip.com> (permalink) |
| Newsgroups | comp.lang.python |
| Date | 2014-12-09 11:32 -0500 |
| Organization | Unlimited download news at news.astraweb.com |
I'd like to add the following to a python-program: when a module (take rtlsdr as an example) is not installed on the system I'd like to ask the program something like: module rtlsdr is missing, shall I install it? y or n if n -->sorry but then I can't run this program and quit program if y -->execute this command: os.system(sudo pip install pyrtlsdr) continue program can anyone here show me how to perform this properly? thanks in advance hugo --- SoupGate-Win32 v1.05 * Origin: <SpaceSST.BBS.Fidonet<>NNTP.gateway.@.piz.noip.me> (1:249/999) --- Synchronet 3.15b-Win32 NewsLink 1.92 SpaceSST BBS Usenet <> Fidonet Gateway
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
[newbie] how to make program suggest to install missing modules "hugocoolens" <hugocoolens@1:249/999.remove-cdt-this> - 2014-12-09 11:32 -0500 Re: [newbie] how to make program suggest to install missing modules sohcahtoa82@gmail.com.remove-cdt-this - 2014-12-09 11:32 -0500
csiph-web