FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Artificial Intelligence examples How to test the Python and TensorFlow examples ?
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

How to test the Python and TensorFlow examples ?

Posted: Tue Aug 15, 2017 12:51 AM
1. Download and install Python from here:

https://www.python.org/ftp/python/3.6.2/python-3.6.2.exe

2. Install TensorFlow for Python:

From a cmd window execute this:
pip3 install --upgrade tensorflow

3. Create this file:
tf.py
Code (fw): Select all Collapse
import tensorflow as tf
hello = tf.constant( "Hello world" )
session = tf.Session()
print( session.run( hello ) )


4. from a cmd window execute:
python tf.py

You will get:
b'Hello world'
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 682
Joined: Tue Feb 14, 2006 09:48 AM

Re: How to test the Python and TensorFlow examples ?

Posted: Fri Aug 18, 2017 09:33 AM
Microsoft Visual C++ 2015 Redistributable X64 is required, probably you already have it installed. If not, you can download from here
https://www.microsoft.com/en-us/download/details.aspx?id=53587
Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/

Continue the discussion