Windows interactive Python: Difference between revisions
From CommunityData
m (win10) |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<ol> | <ol> | ||
<li>Open a command prompt:<br /> | <li>Open a command prompt:<br /> | ||
* On Windows 10 and 8, click the Start menu (or hit the windows key), type <code>PowerShell</code> (which will open the Search field) and hit enter. | * On Windows 10 and 8, click the Start menu (or hit the windows key), type <code>Anaconda PowerShell</code> (which will open the Search field) and hit enter. | ||
* On Windows Vista or Windows 7: click on the Start menu (the Windows logo in the lower left of the screen), type <code>PowerShell</code> into the Search field directly above the Start menu button, and click on "Powershell" in the search results above the Search field. | * On Windows Vista or Windows 7: click on the Start menu (the Windows logo in the lower left of the screen), type <code>Anaconda PowerShell</code> into the Search field directly above the Start menu button, and click on "Anaconda Powershell" in the search results above the Search field. | ||
<li>To start Python, type <pre>python</pre> at the command prompt and hit enter. You should see something like | <li>To start Python, type <pre>python</pre> at the command prompt and hit enter. You should see something like | ||
<pre> | <pre> | ||
Python 3. | Python 3.6.2 (r271:86832, ...) on win32 | ||
Type "help", "copyright", "credits" or "license" for more information. | Type "help", "copyright", "credits" or "license" for more information. | ||
>>> | >>> |
Latest revision as of 00:15, 15 January 2020
- Open a command prompt:
- On Windows 10 and 8, click the Start menu (or hit the windows key), type
Anaconda PowerShell
(which will open the Search field) and hit enter. - On Windows Vista or Windows 7: click on the Start menu (the Windows logo in the lower left of the screen), type
Anaconda PowerShell
into the Search field directly above the Start menu button, and click on "Anaconda Powershell" in the search results above the Search field.
- On Windows 10 and 8, click the Start menu (or hit the windows key), type
- To start Python, type
python
at the command prompt and hit enter. You should see something likePython 3.6.2 (r271:86832, ...) on win32 Type "help", "copyright", "credits" or "license" for more information. >>>
The
>>>
indicates that you are at a Python prompt. - Exit the Python prompt by typing
exit()
and hitting enter. Now you're back at the Windows command prompt (C:\
).
Success![edit]
Practice these steps until you feel comfortable navigating to a command prompt, starting Python, and exiting Python.