I want to install allennlp (https://github.com/allenai/allennlp), but every time I install pip breaks. I've tried running inside conda environments and outside (python env), but it breaks the pip in entire ~/.local/lib. Removing this directory does not help. Please let me know how to install it ?
Thank you for reaching out to us !!
Kindly try below steps to install allennlp :
1) Create a Conda environment with Python 3.7
conda create -n allennlp python=3.7
2) Activate the Conda environment. You will need to activate the Conda environment in each terminal in which you want to use AllenNLP.
3) Installing the library and dependencies is simple using pip.
pip install allennlp --user
That's it! You're now ready to build and train AllenNLP models. AllenNLP installs a script when you install the python package, meaning you can run allennlp commands just by typing allennlp into a terminal.
You can now test your installation with :
Please feel free to reach back to us in case of any issues.
Kindly check the python used by executing below command :
If it shows /glob path, kindly change $PATH to your current conda environment as below
Please share the error screen shot if you are still facing the issue !!