Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Problem installing turtle
#1
Photo 
Hi. I have a problem when I try to install the module Turtle.

I can't find anything about that error anywhere.
When I do "pip install turtle", it doesn't work either.
Can someone give me some advice, please?

Here is an example:

İmage


Python version 3.7.1
pip version:18.1
Quote
#2
Are you sure you want to install this turtle module? It is different from the turtle module from the standard library (which you don't need to install).

The line except ValueError, ve: raises a SyntaxError because it is a python 2 syntax. This turtle module may not be available for python 3.7. The latest version dates from 2009.
Quote
#3
(Nov-10-2018, 08:01 PM)Gribouillis Wrote: Are you sure you want to install this turtle module? It is different from the turtle module from the standard library (which you don't need to install).

The line except ValueError, ve: raises a SyntaxError because it is a python 2 syntax. This turtle module may not be available for python 3.7. The latest version dates from 2009.
I'm trying to install this turtle. I think the standard library is damage because it doesn't recognize "forward()".
The turtle worked with the 3.6.6 version of Python.

That's why I'm trying to reinstall it.
Quote
#4
Don't try to reinstall standard library modules. They're not broken. The most likely problem is that you have another file named turtle.py in your current directory or somewhere on the python path. Try this
import turtle
print(turtle)
and see if the file is the standard library's module turtle. If you have another file named turtle.py on the python path, rename it to something else.
Quote
#5
This is what it gives me:
<module 'turtle' from 'C:\\Users\\jedi\\AppData\\Local\\Programs\\Python\\Python37\\lib\\turtle.py'>
And here what I find the files with turtle in their name.
İmage
Quote
#6
Can you list all the files named turtle.py or turtle.pyc on the computer ? Keep only the one that's in python's standard library. You could try for example
import types
print(types)
to find the directory
Quote
#7
(Nov-10-2018, 09:00 PM)Gribouillis Wrote: Can you list all the files named turtle.py or turtle.pyc on the computer ? Keep only the one that's in python's standard library. You could try for example
import types
print(types)
to find the directory
I know that in the file Python, I have a file launcher and a file Python36-32.
Would it be because of the files of that last folder?

I have deleted the Python 36-32 file.
But nothing changes.
Quote
#8
(Nov-10-2018, 08:07 PM)MasterJediKnight7 Wrote: I think the standard library is damage because it doesn't recognize "forward()".
Can you post example code where this fails, with the complete output and error message?
Quote
#9
(Nov-10-2018, 09:57 PM)Gribouillis Wrote:
(Nov-10-2018, 08:07 PM)MasterJediKnight7 Wrote: I think the standard library is damage because it doesn't recognize "forward()".
Can you post example code where this fails, with the complete output and error message?
from turtle import*
myTurtle = turtle.Turtle()
myTurtle.circle(50)
turtle.getscreen()._root.mainloop()
Traceback (most recent call last):
File "A:\0_ingschool\Courses\Fundamentals of Algorithm\Python\Group Projects\turtle1.py", line 1, in <module>
from turtle import*
File "A:\0_ingschool\Courses\Fundamentals of Algorithm\Python\Group Projects\turtle.py", line 2, in <module>
forward(120)
NameError: name 'forward' is not defined
Quote
#10
(Nov-10-2018, 10:15 PM)MasterJediKnight7 Wrote: A:\0_ingschool\Courses\Fundamentals of Algorithm\Python\Group Projects\turtle.py
This is most certainly the faulty file. Try to give another name to this file.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Please help: problem installing/importing langdetect module in Jupyter Notebook ledgreve 1 54 Yesterday, 05:12 PM
Last Post: snippsat
  Problem installing instaloader ledgreve 21 649 Nov-18-2019, 11:28 AM
Last Post: ledgreve
  Problem with installing PyPDF2 Pavel_47 2 162 Nov-10-2019, 02:58 PM
Last Post: Pavel_47
  Nested while loop problem + turtle DreamingInsanity 3 353 Jul-06-2019, 02:01 PM
Last Post: DreamingInsanity
  wn = turtle.screen() AttributeError: module 'turtle' has no attribute 'screen' Shadower 1 1,311 Feb-06-2019, 01:25 AM
Last Post: woooee
  Problem installing numpy and matplotlib achondrite 1 537 Jan-16-2019, 11:43 PM
Last Post: snippsat
  Help! Turtle not working, even when we click the turtle demo in IDLE nothing happens. BertyBee 3 611 Jan-04-2019, 02:44 AM
Last Post: SheeppOSU
  Big problem for installing PyCharm sylas 2 1,256 Nov-12-2017, 05:17 PM
Last Post: sylas
  Problem installing urlparse4 package BobLoblaw 2 2,262 Oct-06-2017, 05:16 PM
Last Post: BobLoblaw
  Turtle Problem OmarSinno 2 2,982 Sep-26-2017, 07:55 AM
Last Post: OmarSinno

Forum Jump:


Users browsing this thread: 1 Guest(s)