I have entered python in powershell and it shows active state python is installed. But when I type mkdir, It shows a line saying syntax error. Please help me with this. This problem occurs while I try to setup
Hi,
Quit() out of python shell and go back to PowerShell or Press close on PowerShell and re-open.
Try it again now.
When you type “python” in PowerShell it takes you to a raw version of python 2.7.
C:\YouComputer: python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> mkdir
^^^^^^
Wrong X…That is the RAW version of python compiler
To exit this mode TYPE;
>>> quit()
This Exits python back to PowerShell
C:\YouComputer: mkdir mystuff
C:\YouComputer:
^^^ Correct
On a good note, you installed Python correctly , which is annoying on Windows
Cheers tc
1 Like