Win10, Python3 install turtle error report

For example, if you run pip3 install turtle directly, it will show you directly:
insert image description here
Then if you believe this information, you will find that there are no required directories and files under the c:\Users\eric\AppData\Local\Temp\ directory , so most of these three-no Internet articles on the Internet are copied from time to time, and I never verify it in practice. Some children finally figured it out after suffering a loss, and they didn't bother to share their experience with everyone, which caused the phenomenon of bad money driving out good money. It just so happened that the author of this article was in a good mood and decided to share his little experience with you.

The solution process is described below. First download the turtle library, come directly to the hard one, and download it directly from the website
https://pypi.org/project/turtle/#files
​pypi.org/project/turtle/#files .

insert image description here
After downloading, unzip it, open the setup.py file, and modify line 40 to except (ValueError, ve):

That is, change the 40 lines
insert image description here
from except ValueError, ve: to except ValueError as ve:
that is:
insert image description here
then open the cmd terminal in this directory, execute the installation command: python setup.py install
and find that there is still an error.

You need to add brackets to the print statements in all service.py files. The ones without brackets are the print statements used in the python2 environment, and an error will be reported when running in the python3 environment

Guess you like

Origin blog.csdn.net/zhuan_long/article/details/127713918
Recommended