Sorry, I think I did not asked clearly. I am taking care of this thing, only required packages are getting packed that is not the issue for me. What I need help in is - Not pack these packages at all, I am providing a installation script which will setup a virtual env and install the list of requirements(heavy packages). How can I make my exe(the embedded python interpreter) to use those packages? On Tuesday, 4 May 2021 at 13:01:02 UTC+5:30 gadge...@live.co.uk wrote:
> I suspect that you are using an Anaconda installation which includes just > about everything (alternatively you are not working in a minimal venv) - > try: > > 1. Install Python from https://python.org > 2. Create and activate a virtual machine using python -mvenv > 3. pip install pysintaller and just the libraries that you actually use > 4. test to make sure everything is working > 5. run pyinstaller > > > > You should end up with a much smaller package. > > > > Steve Barnes > > > > *From:* pyins...@googlegroups.com <pyins...@googlegroups.com> *On Behalf > Of *Yogesh Sheoran > *Sent:* 04 May 2021 06:22 > *To:* PyInstaller <pyins...@googlegroups.com> > *Subject:* [PyInstaller] External Imports > > > > Hi, I am relatively new with pyinstaller and could not find any > reference/help with my requirement. > > I am creating an application which is using all the major ML frameworks > like tensorflow, pytorch, onnx, caffe, mxnet. While packaging it with > pyInstaller, I am able to pack it successfully but exe size is around 1.5GB. > > I was wondering is there any way to tell/point the python interpretor > packed with pyinstaller to look for these imports on the host machine? > > There is one option in pyinstaller "exclude" but this excluded module can > not import something which is not already imported by other packed modules. > > > > -- > 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...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pyinstaller/c5b4c9b0-ff9f-47f5-9cc0-837808822abfn%40googlegroups.com > > <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpyinstaller%2Fc5b4c9b0-ff9f-47f5-9cc0-837808822abfn%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7C%7C0aa999deb1004938230608d90ecda026%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637557098573981510%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=2zti18RMmHohpRT8giE9xSH4qpeV8TZTIXU6vdSuJeE%3D&reserved=0> > . > -- 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/458601f9-96e9-4885-a3a7-d46f914c829dn%40googlegroups.com.