I have trained a DDQN policy model on my local computer by using Pytorch. When i submitting, i want to import Pytorch in the cloud enviroment. So i write the flollowing code:
import os
try:
import torch
except:
os.system(“pip install torch torchvision”)
but there is a bug in the cloud enviroment (from agent-logs) :
2020-08-04T10:08:18.232383425Z Collecting torch
2020-08-04T10:09:18.333863161Z WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fda93adb6d8>: Failed to establish a new connection: [Errno 101] Network is unreachable’,)’: /simple/torch/
2020-08-04T10:10:18.896505036Z WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fda93adb630>: Failed to establish a new connection: [Errno 101] Network is unreachable’,)’: /simple/torch/
So i wonder how can i use third-party packages like Pytorch in submitting?
Thanks!