1

I have a commercial c++ application that calls Python files and uses Pytorch.

I will be shipping this application with an exe installer (created with Inno Setup) that also installs other dependencies, eg CUDA, by running an included exe installer.

My question is, how should I include a Pytorch installation with this application?

Locally I would use pip install, is that the best approach? Or can I somehow package a Pytorch installer with the application installer?

anti
  • 3,011
  • 7
  • 36
  • 86
  • *"Or can I somehow package a Pytorch installer with the application installer?"* – Seems like sensible thing to do. You cannot expect your users to have `pip`. – Martin Prikryl Oct 29 '21 at 14:57
  • Thanks! that confirms my thoughts. How though, does one package a pytorch installer? – anti Oct 29 '21 at 15:00
  • 1
    You need something like this: [How to install Microsoft VC++ redistributables silently in Inno Setup?](https://stackoverflow.com/q/24574035/850848) – There are many other similar questions here. – Martin Prikryl Oct 29 '21 at 15:05
  • Pytorch does not have an exe installer, is the trouble. It appears to recommend using pip or conda. – anti Oct 29 '21 at 15:08
  • So is seems that Pytorch actually does not need any installation. So why don't you just grap its binary(ies) and pack it (them) into your installer? – Martin Prikryl Oct 29 '21 at 15:10
  • Ah i see! So i can just copy the whole package with the installer. Do i then need to create an environemnet variable so that python filers can find the pytorch location? – anti Oct 29 '21 at 16:47
  • Well, that something I cannot answer as I do not know PyTorch. But yes, it sounds good. – Martin Prikryl Oct 29 '21 at 20:55

0 Answers0