I have just setup a Jupyter Notebook with Paperspace Gradient.
However, when trying to run the first cell of the Appendix in ‘app_jupyter.ipynb’ from fastbook/clean folder in a Paperspace instance, I have the following error, and I don’t really understand what’s happening. I also can’t run any subsequent cells that rely on the fast.ai library. Could someone please help?
[31mERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.
We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.
torchvision 0.11.1 requires torch==1.10.0, but you’ll have torch 1.7.0 which is incompatible.[0m
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-2b820b2b946f> in <module>
1 #hide
2 get_ipython().system('pip install -Uqq fastbook')
----> 3 import fastbook
4 fastbook.setup_book()
/opt/conda/envs/fastai/lib/python3.8/site-packages/fastbook/__init__.py in <module>
1 __version__ = "0.0.18"
2 import matplotlib as mpl, pkgutil, requests, time
----> 3 from fastai.vision.all import *
4 from fastdownload import download_url
5 from pandas.api.types import CategoricalDtype
/opt/conda/envs/fastai/lib/python3.8/site-packages/fastai/vision/all.py in <module>
----> 1 from . import models
2 from ..basics import *
3 from ..callback.all import *
4 from .augment import *
5 from .core import *
/opt/conda/envs/fastai/lib/python3.8/site-packages/fastai/vision/models/__init__.py in <module>
----> 1 from . import xresnet
2 from . import unet
3 from .tvm import *
/opt/conda/envs/fastai/lib/python3.8/site-packages/fastai/vision/models/xresnet.py in <module>
11 # Cell
12 from ...torch_basics import *
---> 13 from torchvision.models.utils import load_state_dict_from_url
14
15 # Cell
/opt/conda/envs/fastai/lib/python3.8/site-packages/torchvision/__init__.py in <module>
4 from .extension import _HAS_OPS
5
----> 6 from torchvision import models
7 from torchvision import datasets
8 from torchvision import ops
/opt/conda/envs/fastai/lib/python3.8/site-packages/torchvision/models/__init__.py in <module>
6 from .densenet import *
7 from .googlenet import *
----> 8 from .mobilenet import *
9 from .mnasnet import *
10 from .shufflenetv2 import *
/opt/conda/envs/fastai/lib/python3.8/site-packages/torchvision/models/mobilenet.py in <module>
----> 1 from .mobilenetv2 import MobileNetV2, mobilenet_v2, __all__ as mv2_all
2 from .mobilenetv3 import MobileNetV3, mobilenet_v3_large, mobilenet_v3_small, __all__ as mv3_all
3
4 __all__ = mv2_all + mv3_all
/opt/conda/envs/fastai/lib/python3.8/site-packages/torchvision/models/mobilenetv2.py in <module>
6 from torch import Tensor
7 from .._internally_replaced_utils import load_state_dict_from_url
----> 8 from ..ops.misc import ConvNormActivation
9 from ._utils import _make_divisible
10 from typing import Callable, Any, Optional, List
/opt/conda/envs/fastai/lib/python3.8/site-packages/torchvision/ops/__init__.py in <module>
10 from .feature_pyramid_network import FeaturePyramidNetwork
11 from .focal_loss import sigmoid_focal_loss
---> 12 from .stochastic_depth import stochastic_depth, StochasticDepth
13
14 from ._register_onnx_ops import _register_custom_op
/opt/conda/envs/fastai/lib/python3.8/site-packages/torchvision/ops/stochastic_depth.py in <module>
1 import torch
----> 2 import torch.fx
3 from torch import nn, Tensor
4
5
ModuleNotFoundError: No module named 'torch.fx'