A.4. Ubuntu package manager

Your Linux distribution already has a full-featured package manager installed. And you may not even need it if you use Anaconda’s package manager conda, as suggested in the NLPIA installation instructions (http://github.com/totalgood/nlpia). The package manager for Ubuntu is called apt. We’ve suggested some packages to install in A.3. You almost certainly won’t need all these packages, but this exhaustive list of tools is here in case you install something with Anaconda and it complains about a missing binary. You can start at the top and work your way down, until conda is able to install your Python packages. See the following listing.

Listing A.3. Install developer tools with apt
$ sudo apt-get update
$ sudo apt install -y build-essential libssl-dev g++ cmake swig git
$ sudo apt install -y python2.7-dev python3.5-dev libopenblas-dev libatlas-
     base-dev gfortran libgtk-3-dev
$ sudo apt install -y openjdk-8-jdk python-dev python-numpy python-
     pip python-virtualenv python-wheel python-nose
$ sudo apt install -y python3-dev python3-wheel python3-numpy python-
     scipy python-dev python-pip python3-six python3-pip
$ sudo apt install -y python3-pyaudio python-pyaudio
$ sudo apt install -y libcurl3-dev libcupti-dev xauth x11-apps python-qt4
$ sudo apt install -y python-opencv-dev libxvidcore-dev libx264-dev libjpeg8-
     dev libtiff5-dev libjasper-dev libpng12-dev
Tip

If the apt-get update command fails with an error regarding bazel, you’ve likely added the Google apt repository with their build tool for TensorFlow. This should get you back on track again:

$ sudo apt-get install curl
$ curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
..................Content has been hidden....................

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