PyInstaller giving me a syntax error
<p><strong>UPDATE:</strong>  Actually, now I have checked, and PyInstaller is saying Invalid Syntax for EVERY script I have, even ones that I have previously packaged with PyInstaller without any issues. I uninstalled and reinstalled PyInstaller, but it's still having the same problem. Is PyInstaller not compatible with Python 3.5.1? That's the only thing I can think of that I might have updated between now and when everything was working fine</p>

<p><strong>Original Question:</strong>  I'm sure there is a really simple and stupid answer for what I'm doing wrong, because I can't seem to find any other cases of people having this problem.  </p>

<p>I have a script I want to package into a standalone executable.  In the past, I have used PyInstaller with minimal hassle.  Py2exe and cx_freeze have never worked for me.  I'm using Python version 3.5.1 and PyInstaller version 3.2, which I believe is the current version since I just uninstalled and reinstalled. </p>

<p>The command I am trying to use is so simple I feel like an idiot for having trouble.  </p>

<pre><code>pyinstaller --onefile myscript.py

      File "&lt;stdin&gt;", line 1
        pyinstaller --onefile myscript.py


      SyntaxError: invalid syntax
</code></pre>

<p>It's giving a generic <code>SyntaxError: invalid syntax</code> even though that is the exact command straight from the PyInstaller docs.  </p>

<p>To be sure, I also tried to include the entire path to my script in the command, added and took out quotation marks, and tried every variation I could think of but it gives me the same syntax error every time.  </p>

<p>I'm pretty much a beginner, so any really advanced fixes will go over my head.  But like I said, I assume it's something silly I've missed.  Thanks in advance.</p>