5 ms·
I recently spent an entire day trying to import AllenNLP and its dependencies. I gave up after trying multiple interpreters, virtual environments, and operating
by staticautomatic 6y ago
I recently spent an entire day trying to import AllenNLP and its dependencies. I gave up after trying multiple interpreters, virtual environments, and operating systems.
- chishaku 6y agoBefore Docker, I remember yak shaving like this with lxml, numpy, scipy and other libraries. Now that I do everything in a container, life is much improved. Try Docker as documented in the AllenNLP README: $ mkdir -p $HOME/.allennlp/ $ docker run --rm -v $HOME/.allennlp:/root/.allennlp allennlp/allennlp:latest
- hinkley 6y agoThat was probably the first things that attracted me to Docker. If I started a new job or new project, it was the same story every time. “Do these five things and then you should be able to run the code” after half a day of back and forth I’d have a list of ten things, and the next new person would discover it is actually 12. Docker doesn’t just change your experience, it forces the author to actually capture most of their prerequisites. To the point where even if you don’t use docker, you benefit from a project having at least tried to use it.
- jhayward 6y agoInteresting, I just went to the repo's README and followed the directions for conda and had it installed and running in 3 commands.
- staticautomatic 6y agoFrankly I was just trying to get a pre-trained ELMO model deployed via Cortex. As best I could tell the problem boiled down to a failure related to installing tensorflow with gpu disabled. I am a NN noob but still, it just shouldn’t be this hard.
- FridgeSeal 6y agoUnfortunately that, whilst seeming simple-enough on the surface is one of those things that cuts across a whole number of layers, which makes it quite involved to solve any issues that arise.