I made a thread before, but I think it’s clear I should have posted here.
–
I have been using google colab without issue, until needing to run widgets. I don’t have a GPU on my laptop but see no reason I can’t clean data on it.
However, attempting to install/run on my Ubuntu 18.04 laptop, is not working. I am sure I am missing something basic but I have struggled for some hours now, so here I am.
I have installed fastai with conda.
conda install -c pytorch -c fastai fastai
And my binaries seem to be correct?
(base) geoff@cs-macbook:~/src/neuralnet_stuff/local$ which jupyter
/home/geoff/anaconda2/bin/jupyter
(base) geoff@cs-macbook:~/src/neuralnet_stuff/local$ which python
/home/geoff/anaconda2/bin/python
(base) geoff@cs-macbook:~/src/neuralnet_stuff/local$ which pip
/home/geoff/anaconda2/bin/pip
When I run a notebook
(fastai) geoff@cs-macbook:~/src/neuralnet_stuff/local$ jupyter notebook
And try and import fastai, I get the error:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-3749d44be698> in <module>
1 from fastai import *
----> 2 from fastai.vision import *
3 from fastai.metrics import error_rate
ModuleNotFoundError: No module named 'fastai.vision'
If I clone the fastai repo and put it in the same directory, and try and import fastai by path it happens like this:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-3-d20a49ecd0c9> in <module>
1 from fastai.fastai import *
----> 2 from fastai.fastai.vision import *
3 from fastai.fastai.metrics import error_rate
~/src/neuralnet_stuff/local/fastai/fastai/vision/__init__.py in <module>
----> 1 from .. import basics
2 from ..basics import *
3 from .learner import *
4 from .image import *
5 from .data import *
~/src/neuralnet_stuff/local/fastai/fastai/basics.py in <module>
----> 1 from .basic_train import *
2 from .callback import *
3 from .core import *
4 from .basic_data import *
5 from .data_block import *
~/src/neuralnet_stuff/local/fastai/fastai/basic_train.py in <module>
1 "Provides basic training and validation with `Learner`"
----> 2 from .torch_core import *
3 from .basic_data import *
4 from .callback import *
5 from .data_block import *
~/src/neuralnet_stuff/local/fastai/fastai/torch_core.py in <module>
1 "Utility functions to help deal with tensors"
----> 2 from .imports.torch import *
3 from .core import *
4
5 AffineMatrix = Tensor
~/src/neuralnet_stuff/local/fastai/fastai/imports/__init__.py in <module>
----> 1 from .core import *
2 from .torch import *
~/src/neuralnet_stuff/local/fastai/fastai/imports/core.py in <module>
11 from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor
12 from copy import copy, deepcopy
---> 13 from dataclasses import dataclass, field, InitVar
14 from enum import Enum, IntEnum
15 from functools import partial, reduce
ModuleNotFoundError: No module named 'dataclasses'
I am stuck, any help would be appreciated. The computer’s “name” is “C’s Macbook” but it’s not a mac in software or hardware.