• notice
  • Congratulations on the launch of the Sought Tech site

Python3 install turtle prompt SyntaxError: invalid syntax

SyntaxError : invalid syntax
File “…/ turtle / setup . Py ”, line 40

Prompt the above information when installing turtle

Reason: after Python3, except cannot accept statements without ()

Solution:

Download the compressed package of turtle -0.0.2.tar.gz, unzip it and put it on the desktop after the download is complete

Open turtle -0.0.2 and edit setup.py

And change the except ValueError, ve: to except (ValueError, ve) on line 40:

After Ctrl+s saves the file,
you can install the project interpreter install in pycharm, or install pip install in cmd



Tags

Technical otaku

Sought technology together

Related Topic

0 Comments

Leave a Reply

+