Unexpected error when loading the model: problem in predictor - ModuleNotFoundError: No module named 'torchvision'
问题 I've been trying to deploy my model to the AI platform for Prediction through the console on my vm instance, but I've gotten the error "(gcloud.beta.ai-platform.versions.create) Create Version failed. Bad model detected with error: "Failed to load model: Unexpected error when loading the model: problem in predictor - ModuleNotFoundError: No module named 'torchvision' (Error code: 0)" I need to include both torch and torchvision . I followed the steps in this question Cannot deploy trained