Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SyntaxError in setup.py with pip to install module

Tags:

python

pip

So my teacher in Python showed the turtle module, so I want to try it myself, but when I try to install the turtle module on my PC I have an error:
I'm using "pip" to install modules, so when I do "pip install turtle" on a console
(not Python console) I have an error :

Collecting turtle
using cached turtle-0.0.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Daxxas\AppData\Local\Temp\pip-build-727hpv0w\turtle\setup.py", line40
except ValueError, ve:
                 ^
SyntaxError: invalid syntax

and there is this in red :

Command "python setup.py egg_info" failed with error code 1 C:\Users\Daxxas\AppData\Local\temp\pip-build-727hpv0w\turtle\

And I don't know what to do. There isn't pip's folder in "Temp".

So how can I fix this to be able to install the turtle module ?

ps : Is it possible to copy/paste something in a console ?

like image 588
daxxas159 Avatar asked Dec 19 '22 12:12

daxxas159


1 Answers

Turtle is already included in the Python standard library; you don't need to install anything.

The library you were installing is a completely different thing (an HTTP proxy, apparently) which looks like it's not compatible with any recent Python version.

like image 154
Daniel Roseman Avatar answered Dec 21 '22 02:12

Daniel Roseman