Crashes every time I install tensorflow.
To use TensorFlow in Replit, run
pip install tensorflow-cpu in the shell, then create a .replit file and in it, put:
run="python main.py" [packager] ignoredPackages=["tensorflow"]
Now you can use
import tensorflow as tf
The Replit VM has no GPU, so you have to install tensrflow-cpu, which has CPU-only support.
When you install tensorflow-cpu, if you use
import tensorflow, python imports tensorflow-cpu. Replit doesn't know that, so when you import tensorflow it will automatically install normal tensorflow. By adding tensorflow to ignoredPackages, Replit won't install normal tensorflow.