title: How to install Google Cloud DLP on Mac M1?
body: <p>I am trying to download Google Cloud DLP on my Mac M1 running macOS Monterey. I am using Python 3.10.4 and pip 22.0.4.</p>
  <p>I first tried using <code>pip install google-cloud-dlp</code>, but got an error when I went to import it that I have the wrong architecture (arm instead of x86-64 – hence M1 error).</p>
  <p>I then uninstalled DLP and followed the advice of a StackOverflow post to download the library directly from GitHub. I did this, navigated to the directory, and ran <code>sudo python3 setup.py install</code>.</p>
  <p>Now, when I try to import the library, I get the error:</p>
  <pre><code>---------------------------------------------------------------------------
  ModuleNotFoundError                       Traceback (most recent call last)
  Input In [57], in &lt;cell line: 1&gt;()
  ----&gt; 1 import google.cloud.dlp
  
  ModuleNotFoundError: No module named 'google.cloud.dlp'
  </code></pre>
  <p>This is odd because when I run <code>pip list</code> I get this in the output:</p>
  <pre><code>google-api-core          2.7.2
  google-auth              2.6.6
  google-cloud-dlp         3.6.2
  googleapis-common-protos 1.56.0
  </code></pre>
  <p>Now, when I run <code>pip install google-cloud-dlp</code>, I get a bunch of &quot;Requirement already satisfied&quot; messages, yet when I try to import, I get a ModuleNotFoundError.</p>
  <p>I have tried importing in Atom, VSCode, and Jupyter-Notebook, and still get a ModuleNotFoundError. I feel dumb asking this question because it seems like it would be an easy fix, but any help is appreciated.</p>