Hi, I have a trained model and created a Django app to host this model. Everything works great in development but now as I am trying to package the Django app for production I have the problem that setuptools can’t seem to install pytorch correctly. In my setup.py I have install_requires containing "torch==1.2.0+cpu", "torchvision==0.4.0+cpu and the dependency_links containing https://download.pytorch.org/whl/torch_stable.html.
This seems to be finding torch on pip instead and deciding it can’t install.
I have also tried with install_requires containing
"torch==1.2.0",
"torchvision=0.4.0",

and dependency_links containing
https://download.pytorch.org/whl/cpu/torch_stable.html

Neither of these seem to work and I can’t find anything online about this issue. Has anyone done this before and how did you do it?