安装allennlp
下载 运行bash
2、Create a Conda environment with Python 3.6
conda create -n allennlp python=3.6
{
进入anaconda安装目录
}
3、Activate the Conda environment. You will need to activate the Conda environment in each terminal in which you want to use AllenNLP.
source activate allennlp(创建虚拟环境,记得好像是要进入allennlp所在文件夹)
4、Installing the library and dependencies is simple using pip.
pip install allennlp
之后每次进入虚拟环境 只需:
source activate allennlp
(在哪个用户下建立 只能在哪个用户下进入比如:
)
source /home/haiou/anaconda3/bin/activate allennlp