Community
cancel
Showing results for 
Search instead for 
Did you mean: 
PBhar
Student Ambassador
279 Views

Installing allennlp without breaking pip

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 (1)
0 Kudos
5 Replies
Adweidh_Intel
Moderator
279 Views

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. 

PBhar
Student Ambassador
279 Views

AllenNLP installs but it breaks pip after installation, can you try using pip after installation ?

Adweidh_Intel
Moderator
279 Views

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 !!

ArunJ_Intel
Moderator
279 Views

Could you please let us know if your issue is resolved?

PBhar
Student Ambassador
279 Views

Yes. It is resolved.