Apply TensorFlow in Sublime Text 3 in OSX

To apply tensorflow in sublime text 3 might have some issues due to comptability among python 2.7, built system in sublime text 3, and tensorflow itself.

Follow the following steps we can still make it happen:

1. Install Python 2.7, not the default one of MAC. We need to install another 2.7 under the path “/Library/Frameworks/Python.framework/Versions/2.7/bin/python”

2. Use terminal to install tensorflow for python 2.7:

“pip install tensorflow”

3. After the installment is over, we need to upgrade the tensorfow for python 2.7 to the latest version manually:

“pip install –upgrade tensorflow” in terminal.

4. Build the new system of python 2.7 in sublime text 3:

https://charleshsliao.wordpress.com/2017/03/07/build-python-ide-with-sublime-text3-on-mac-os-x/

5. Run the script under python 2.7 in sublime text 3.

Screen Shot 2017-04-23 at 4.35.13 PM.png

Now it should work, even when we choose python 3.6 as the built system. Still recommend python2.7 when we apply tensorflow in sublime text since TensorFlow still has functions not compatible for 3.6.

Screen Shot 2017-04-23 at 4.35.20 PM.png

Screen Shot 2017-04-23 at 4.35.06 PM.png

Advertisements

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