I guess your best bet would be to make an installer for each platform that installs Anaconda (or better just miniconda), then have Anaconda silently install your app (for which you'd have to make a conda recipe). For Windows you could use NSIS, but if you want to share the same code for all platforms, I guess you could write your own installer in Python and then use PyInstaller to package your installer, which will then install your app and miniconda with all the requirements. You'd still need one installer binary for each platform, since you can't expect Python or Java to be available on Windows.
* Adrià Cereto i Massagué* Centre de Ciències Òmiques (COS) Unitat Mixta URV-Eurecat Av. Universitat, 1. 43204 Reus (Catalonia) Tel: +34 977 77 53 31 <%2B34%20977%2077%2014%2009> Extensió URV: 4841 Missatge de Paul Prescod <p...@prescod.net> del dia dl., 25 de gen. 2021 a les 21:08: > > > > On Mon, Jan 25, 2021 at 1:29 AM Steve Barnes <gadgetst...@live.co.uk> > wrote: > >> Pyinstallers job isn't to install Python it is to create a file/folder >> with your code and enough of python for your code to run. >> > > I did say at the beginning "I don’t think this is the use-case for > pyinstaller". I'm asking if people on the mailing list know about other > tools. For example Higor mentioned pyz's which I hadn't thought of in this > context. > > >> If you want to install python go to https://python.org and download >> python for your platform. >> > > Also: I don't want to install Python. I want to install my app which > depends upon Python. But t depends upon pretty much all of Python, > including pip. > > >> If you need to have pip as a part of your code installation you need to >> tell pyinstaller to include it. >> > > I was told that this won't work. > > https://www.mail-archive.com/pyinstaller@googlegroups.com/msg08478.html > > "You're never going to run anything pip related from a PyInstaller app" > > -- > You received this message because you are subscribed to the Google Groups > "PyInstaller" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pyinstaller+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pyinstaller/CAAKstZJrCtfho97L4ZpjZu5DZWrAWuEVMyvFcPzncyXV_X%3DLjQ%40mail.gmail.com > <https://groups.google.com/d/msgid/pyinstaller/CAAKstZJrCtfho97L4ZpjZu5DZWrAWuEVMyvFcPzncyXV_X%3DLjQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/CAB8Wu-%2BQiMtaX%3DveWZ2%3DjbDcH3g%3D4EGYJuG-Zy4k4u4s5GEjTQ%40mail.gmail.com.