I want to install a python3 package (in this specific case is torch and torchvision) on a cluster that is not connected to the external world. I have tried to do pip3 download <package>
and then I move the file to the cluster and run pip3 install <downloaded-file> -t /custom/folder
(because I am installing in one of the folders in my personal account, and not on the entire cluster).
When I run the install
command, pip3
is trying to download numpy
package -- for some reason (it is actually already installed and working on ipython3, I do not know why it is trying to download that).
Of course, the installation fails because there is no connection to the external world. Can I force python to download everything with any flags?
Moreover, I would like to be sure I am downloading the proper thing: the location from which I am downloading the file is different from the location where I want to install, the first it is a regular CPU and the second runs GPU and has CUDA installed.