Home » Python » python – Can't import turtle-Exceptionshub

python – Can't import turtle-Exceptionshub

Posted by: admin February 24, 2020 Leave a comment

Questions:

I’m a complete novice, so I appreciate the answers.
I’m trying to get turtle on my powershell, because that’s what the book I’m reading says to do but this shows up,

import : The term 'import' is not recognized as the name of a cmdlet,function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ import turtle
+ ~~~~~~
+ CategoryInfo          : ObjectNotFound: (import:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
How to&Answers:

You’re not in the Python interpreter. You have to start it up, generally by entering the command py. Then you can use the Python environment.