Closed danieljacobsen-ai closed 2 years ago
Line 87 in 01-tensor_tutorial.ipynb gives:
RuntimeError Traceback (most recent call last) /var/folders/by/jx9csdf51z1g3f1k98bp4l0m0000gn/T/ipykernel_16022/3920892791.py in 1 # Numpy bridge! ----> 2 plt.hist(torch.randn(1000).numpy(), 100);
RuntimeError: Numpy is not available
OSX, venv, pip installed torch (v. 1.10.1) and numpy(1.21.4).
Turns out you have to install torch (pytorch) with Conda. Using venv leads to "Numpy is not available."
Line 87 in 01-tensor_tutorial.ipynb gives:
RuntimeError Traceback (most recent call last) /var/folders/by/jx9csdf51z1g3f1k98bp4l0m0000gn/T/ipykernel_16022/3920892791.py in
1 # Numpy bridge!
----> 2 plt.hist(torch.randn(1000).numpy(), 100);
RuntimeError: Numpy is not available
OSX, venv, pip installed torch (v. 1.10.1) and numpy(1.21.4).