Skip to content

Address dependency problems caused by M1 Macs #330

@edwardchalstrey1

Description

@edwardchalstrey1

From a scivision workshop this week we encountered the following issues, a couple of notes on problems encountered yesterday when they were going through the example notebook, all on M1 Macs:

  • we already mentioned the tensorflow one, but to clarify a bit, if they see the error when doing load_pretrained_model for the "resnet" model, we had to clone the repo https://github.com/alan-turing-institute/scivision_classifier.git then remove tensorflow from requirements.txt, and then pip install . (and install tensorflow some other way e.g. via conda
  • some people also had problems with load_pretrained_model for the huggingface classifier. For this, the approach was similar: clone the repo https://github.com/alan-turing-institute/scivision_huggingface, remove all the "transformer" lines from the requirements.txt, then do pip install git+https://github.com/huggingface/transformers (i.e. install from source), and then do pip install . .

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions