A.2. Install NLPIA

We like to install software source code that we’re working on in a subdirectory under our user $HOME called code/, but you can put it wherever you like. If this doesn’t work, check out the nlpia README (https://github.com/totalgood/nlpia) for updated installation instructions.

Listing A.2. Install nlpia source with conda
$ mkdir -p ~/code
$ cd ~/code
$ git clone https://github.com/totalgood/nlpia
$ cd ~/code/nlpia
$ conda install -y pip                                       1
$ pip install --upgrade pip                                  2
$ conda env create -n nlpiaenv -f conda/environment.yml      3
$ source activate nlpiaenv                                   4
$ pip install --upgrade pip                                  5
$ pip install -e .                                           6

  • 1 Install the latest conda binary for pip within your root conda environment.
  • 2 Upgrade pip to the latest pypi.python.org version—Pip Installs Pip after all ;).
  • 3 Create a conda environment, a directory in "$HOME/Anaconda3/envs/nlpia" with binary & source dependencies.
  • 4 Activate your Python environment.
  • 5 Install the latest pip within your nlpiaenv environment.
  • 6 Install an editable source code directory for nlpia, so your changes source and data will go "live" whenever you save your edits to disk.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset