Python 3.5 running in IDLE shell, but not macOS Terminal
<p>I'm trying to get Python 3.5 to run in my terminal.  I made a script using idle that printed out the version of python in use to try to solve my problem. The script looked like this:</p>

<pre><code>import sys
print(sys.version_info)
</code></pre>

<p>When I ran it in IDLE, I got the following output:</p>

<pre><code>sys.version_info(major=3, minor=5, micro=2, releaselevel='final', serial=0)
</code></pre>

<p>When I ran it in terminal, I got the following output instead:</p>

<pre><code>sys.version_info(major=2, minor=7, micro=10, releaselevel='final', serial=0)
</code></pre>

<p>I want to be able to run my scripts in terminal because I want to be able to access files and use pip.  If you know how I can do one or both of these things in the IDLE shell, or you know how to update terminal so I can do this.</p>

<h1>Running Python from the terminal</h1>

<p>If you have Python installed, then:</p>

<ul>
<li><code>python</code> or <code>python2</code> opens the interactive prompt or runs a script if a file is supplied as an argument</li>
<li><code>python3</code> does the same as above, but for Python 3</li>
</ul>

<p>Note that if Python 3 is set as the default Python version, then running <code>python</code> will use Python 3</p>

<h1>Running IDLE from the terminal</h1>

<p>If you have IDLE installed, then:</p>

<ul>
<li><code>idle2</code> opens IDLE for Python version 2</li>
<li><code>idle3</code> opens IDLE for Python version 3 (unless you change the default python)</li>
</ul>

<h1>Changing the default Python version</h1>

<p>If you want Python 3 to be the default Python version, then take a look at this SO question: <a href="http://stackoverflow.com/questions/18425379/how-to-set-pythons-default-version-to-3-3-on-os-x">How to set Python&#39;s default version to 3.3 on OS X?</a> Be aware that there are some disadvantages and things to work around, so I advise you to read the entire article if you do so.</p>

python osx shell pip python-idle