Python 3 installed, error when running
<p>I installed <strong>Python 3.5.1</strong> on my Mac, <strong>alongside Python 2.7.10</strong>. When I run <code>python --version</code>, it returns <code>Python 2.7.10</code>, and when I run <code>python3 --version</code>, it returns <code>Python 3.5.1</code>, which should confirm that Python 3 correctly installed. However, whenever I try to run a command or file with <strong>python3</strong> in <strong>Terminal</strong>, it gives me this error:</p>

<blockquote>
  <p>Fatal Python error: Py_Initialize: unable to load the file system
  codec   File
  "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/<strong>init</strong>.py",
  line 123
      raise CodecRegistryError,\
                              ^ SyntaxError: invalid syntax</p>
  
  <p>Current thread 0x00007fff72bb4000 (most recent call first): Abort
  trap: 6 Farshids-MacBook-Pro-2:mysite Sasha$ python3 Fatal Python
  error: Py_Initialize: unable to load the file system codec   File
  "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/<strong>init</strong>.py",
  line 123
      raise CodecRegistryError,\
                              ^ SyntaxError: invalid syntax</p>
  
  <p>Current thread 0x00007fff72bb4000 (most recent call first): Abort
  trap: 6</p>
</blockquote>

<p>and also pops up with a message saying <code>"Python quit unexpectedly."</code> As you can see in the error, it mentions 2.7, which means that it was probably trying to run the code using 2.7.</p>

<p>How do I fix this? By the way, I installed Python 3 to follow a Django tutorial that does not work without Python 3, and I'm so knowledgeable about Python to be able to adjust. </p>