title: How to delete all my pycache folders from an Anaconda installation of Python?
body: <p>I have P<code>ython 3.8</code> installed via <code>Anaconda</code>. I am running a Python script from the command line and I am getting the following error:</p>
  <pre><code>ImportError: bad magic number in 'myscript': b'B\r\r\n'
  </code></pre>
  <p>Following some research online, I came across a post where the author stated that the solution is to run the following lines to clear the cache folders:</p>
  <pre><code>find . -name \*.pyc -delete
  </code></pre>
  <p>Since I'm new to Python, I would like some help on the following:</p>
  <p>(1) Where do I run that command?</p>
  <p>As I mentioned above, I installed Python using Anaconda. So, do I just need to get into the following path in my command prompt (C:\Users\xxxx\Anaconda3) and run the codes from there?</p>
  <p>(2) Is it safe to delete all the &quot;pyc&quot; folders?</p>