I am using minconda and have python 3.7 installed on a Windows 7 machine. I was instructed to use the following commands at the Anaconda prompt:
conda create --name=IntroToTensorFlow python=3 anaconda
source activate IntroToTensorFlow
Windows did not recognize the word source, but did accept the command when I removed the word source
conda install -c conda-forge tensorflow
the system responds to the last command:
(IntroToTensorFlow) C:\>conda install -c conda-forge tensorflow
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.5.11
latest version: 4.5.12
Please update conda by running
$ conda update -n base -c defaults conda
I updated conda using the above command. There is a hello world program that is suggested to run in a jupyter notebook:
import tensorflow as tf
# Create TensorFlow object called tensor
hello_constant = tf.constant('Hello World!')
with tf.Session() as sess:
# Run the tf.constant operation in the session
output = sess.run(hello_constant)
print(output)
The error is as follows:
ModuleNotFoundError Traceback (most recent call last) in ----> 1 import tensorflow as tf 2 3 # Create TensorFlow object called tensor 4 hello_constant = tf.constant('Hello World!') 5 ModuleNotFoundError: No module named 'tensorflow'
When I enter at Anaconda prompt:
conda list
TensorFlow shows up on the list
I have read something that Python is not supported yet and should roll back to a previous version of Python 3.6.5 with something called brew. Is this still true? The post is 6 months old
https://apple.stackexchange.com/questions/329187/homebrew-rollback-from-python-3-7-to-python-3-6-5-x
brew info python 'brew' is not recognized as an internal or external command, operable program or batch file.
What is brew and how do I run it? Is there a Windows 7 alternative? It looks like an Apple system command.