context
- machine: 64-bit Mac
- OS: macOS 10.10.5
error msg
following course [Jerry Kurata 'Tensorflow: Getting Started'
] ran the following:
import tensorflow as tf
import numpy as np
import math
import matplotlib.pyplot as plt
import matplotlib.animation as animation
num_house = 160
np.random.seed(42)
house_size = np.random.randint(low=1000, high=3500, size=num_house)
np.random.seed(42)
house_price = house_size * 100.0 + np.random.randint(low=20000, high=70000, size=num_house)
plt.plot(house_size, house_price, "bx")
plt.xlabel("price")
plt.ylabel("size")
plt.show
received this error
**RuntimeError**: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework.
attempt to fix
- have consulted this answer [https://stackoverflow.com/a/21789908/6813490] but concerned to change anything related to global matplotlib settings in a way that would affect other projects outside this virtual environment