- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
- Tags:
- General Support
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Prajjwal,
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.
allennlp test-install
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 :
allennlp test-install
Please feel free to reach back to us in case of any issues.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AllenNLP installs but it breaks pip after installation, can you try using pip after installation ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Prajjwal,
Kindly check the python used by executing below command :
which python
If it shows /glob path, kindly change $PATH to your current conda environment as below
export PATH="/home/uxxxx/.conda/envs/allennlp/bin":$PATH
Please share the error screen shot if you are still facing the issue !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you please let us know if your issue is resolved?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes. It is resolved.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page