title: How can I run both TensorFlow and Torch on Mac M1 MacBook Pro?
body: <p>I encounter some problems on my MacBook Pro M1. I thought it would be easier to start coding on it, apparently it's not a ML beast yet...</p>
  <p>I need to use both PyTorch and TensorFlow on Python. I have installed <a href="https://github.com/apple/tensorflow_macos" rel="nofollow noreferrer">TensorFlow 2.0 for Mac OS</a>.</p>
  <p>The problem is: TensorFlow won't work when you use a x86_64 terminal. (So it doesn't work with PyCharm). However, I can import TensorFlow 2.0 from an arm terminal.
  Paradoxically, PyTorch won't install on a arm terminal, only on a x86_64 terminal. So, on the same Python terminal, I'm not able to import both torch and TensorFlow 2.0.</p>
  <p>Since <a href="https://huggingface.co/transformers/" rel="nofollow noreferrer">HuggingFace transformers</a> is crucial for me, and transformers needs both TensorFlow 2.0 and PyTorch, I need to go back on my old computer to code. I'm very disappointed!</p>
  <p>Anyone successfully imported <strong>both PyTorch and TensorFlow</strong> on a <strong>Mac M1</strong> device?</p>
  <p>And does anyone know if there is a way to force PyCharm to use an arm terminal, so I can use <strong>TensorFlow 2.0 on PyCharm</strong> on my M1 MPB?</p>
  <p>Thank you!</p>