Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

raspberry pi - Is it possible to install python package AllenNLP on RPi4?

Is it already possible to install AllenNLP on Raspbian? I can install AllenNLP on Windows 10 Python 64 bit, but not yet on a RPi4.

I've already tried to install AllenNLP via Miniconda, pip and docker but none worked out for me.

Reference readme of their github: (https://github.com/allenai/allennlp#installation)

I'm kinda new in this world so if anyone would have a working allennlp package with these specifications:

  • Raspbian 10 Buster
  • aarch64
  • Python 3.7

and specify the steps, it would be awesome!

Is there any wheel package already available?

I really want to use a Semantice Role Labeling model of AllenNLP (https://demo.allennlp.org/semantic-role-labeling/semantic-role-labeling) but when i try pip3 install allennlp==1.0.0 allennlp-models==1.0.0 i get this:

image of pip install

Am I doing something wrong? I already have pytorch installed on version 1.6.0 (output of script.py)

Any help would be awesome!

Have a good day

Lennert

question from:https://stackoverflow.com/questions/65851398/is-it-possible-to-install-python-package-allennlp-on-rpi4

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It looks like PyTorch isn't available for the RPi4. That's a hard dependency for AllenNLP. You could try building it from source. I have found that less difficult than it sounds.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...