title: pytorch, AttributeError: module 'torch' has no attribute '_utils_internal'
body: <p>I need to test some fastai models in an environment without GPU, specifically in a windows server. I trained some fastai models in Google colab, and now need to test them in real time, connected to an industrial process. Nevertheless I'm limited with hardware.</p>
  <p>In Google colab, I worked with this configuration.</p>
  <pre><code>from fastai.vision import *
  from fastai.metrics import error_rate
  from PIL import Image as PImage
  import numpy as np
  import cv2
  import os
  import pandas as pd
  </code></pre>
  <p>The first line is the onlyone that has the trouble is the first one, and I get this error:</p>
  <pre><code>  ~\.conda\envs\fastai_1\lib\site-packages\fastai\vision\__init__.py&quot;, line 3, in &lt;module&gt;
      from .learner import *
  
    ~\.conda\envs\fastai_1\lib\site-packages\fastai\vision\learner.py&quot;, line 6, in &lt;module&gt;
      from . import models
  
    ~\.conda\envs\fastai_1\lib\site-packages\fastai\vision\models\__init__.py&quot;, line 2, in &lt;module&gt;
      from torchvision.models import ResNet,resnet18,resnet34,resnet50,resnet101,resnet152
  
    ~\.conda\envs\fastai_1\lib\site-packages\torchvision\__init__.py&quot;, line 4, in &lt;module&gt;
      from .extension import _HAS_OPS
  
    ~\.conda\envs\fastai_1\lib\site-packages\torchvision\extension.py&quot;, line 51, in &lt;module&gt;
      _register_extensions()
  
    ~\.conda\envs\fastai_1\lib\site-packages\torchvision\extension.py&quot;, line 47, in _register_extensions
      torch.ops.load_library(ext_specs.origin)
  
    ~\.conda\envs\fastai_1\lib\site-packages\torch\_ops.py&quot;, line 99, in load_library
      path = torch._utils_internal.resolve_library_path(path)
  
  AttributeError: module 'torch' has no attribute '_utils_internal'
  </code></pre>
  <p>I had to installed Pytorch with conda as was suggested by pytorch start locally <a href="https://pytorch.org/get-started/locally/" rel="nofollow noreferrer">https://pytorch.org/get-started/locally/</a>, but for fastai I had to installed using pip. Conda doesn't work in my limited hardware in the server</p>
  <pre><code># for Pytorch
  conda install pytorch torchvision torchaudio cpuonly -c pytorch
  # for fastai
  python -m pip install fastai==1.0.61
  </code></pre>
  <p>My torch version is 1.9.0
  My python version is 3.7.7</p>
  <p>I checked several similar threads, with different attribute that is not found, but, all are related to that specific error, not '_utils_internal'</p>
  <p>I appreciate any help</p>