Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1638 Discussions

Installing allennlp without breaking pip

PBhar
Beginner
1,480 Views

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 ?

0 Kudos
5 Replies
Adweidh_Intel
Moderator
1,480 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. 

0 Kudos
PBhar
Beginner
1,480 Views

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

0 Kudos
Adweidh_Intel
Moderator
1,480 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 !!

0 Kudos
ArunJ_Intel
Moderator
1,480 Views

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

0 Kudos
PBhar
Beginner
1,480 Views

Yes. It is resolved.

0 Kudos
Reply