Armon Tab
Armon Tab

Reputation: 45

Can't import turtle

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

Upvotes: 0

Views: 818

Answers (2)

python-coder12345
python-coder12345

Reputation: 188

import turtle is Python but not PowerShell. Make sure you are in Python, not PowerShell, when you do import turtle.

Upvotes: 1

TigerhawkT3
TigerhawkT3

Reputation: 49320

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.

Upvotes: 2

Related Questions