Setting up Eclipse with TensorFlow

· 未分类
Authors

I think it’s time to move on to TensorFlow and embrace the DL world now….

So first, why TensorFlow? It’s mainly due to the following comparison from Dr. Matt Rubashkin:

A concise summary of deep learning frameworks

deep_learning_ratings_final-1024x563

I chose TF because it supports multi-GPUs and it’s supposed to be easy to setup — and yes it is!

Here’s how to setup TF on Ubuntu 16.04 LTS, with Eclipse PyDev:

  1. we’ll need CUDA 8;
  2. we’ll need JAVA + eclipse;
    1. JAVA 8 installation: http://tipsonubuntu.com/2016/07/31/install-oracle-java-8-9-ubuntu-16-04-linux-mint-18/
    2. Eclipse + PyDev: https://cloud.google.com/appengine/docs/standard/python/tools/setting-up-eclipse
  3. we’ll need TensorFlow, using pip installation (with pip we can easily import libraries into Eclipse): https://www.tensorflow.org/install/install_linux
  4. and now here’s the fun part: import TF into Eclipse: Eclipse->Window->Preferences->PyDev->Interpreters->Python Interpreter->New, select the python interpreter under your TF bin folder.

If Eclipse still reports error as not able to import tensorflow, try “import sys” so to reload library path again.

Things should be good now. Have fun! =3=

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: