In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to solve the error problem of installing turtle-0.0.2 with pip in Python3.8", the content of the explanation in the article is simple and clear, easy to learn and understand, now please follow the editor's train of thought slowly in depth, together to study and learn "how to solve the error problem of Python3.8 installing turtle-0.0.2 with pip"!
Turtle library is the basic drawing library of python, the official manual.
This library is introduced as one of the most commonly used method libraries to introduce programming knowledge to children. it is mainly used for the introduction of programming and is one of the standard libraries. Turtle can be used to make a lot of complex drawings.
Understanding of turtle principle
The name turtle means "sea turtle". We imagine a sea turtle, located in the center of the form on the monitor, walking upstream of the canvas, and its trajectory forms the drawing.
The movement of the turtle is controlled by the program, it can change color, change size (width) and so on.
The text begins:
This experience is mainly aimed at:
1. The command line is restricted by administrator privileges
The problem of 2.python3.8 and turtle Library
Errors that are easy to occur when installing libraries in 3.pip
The experience is as follows:
1. Start the system32 command line as an administrator and then go to the command line of the disk where turtle is located
two。 Test the pip version with pip list
3. Follow the prompts to update pip and download general libraries, such as pip install panda, which works normally
4. Due to the python update, we need to manually download the information from the turtle official website.
After the download is completed, the following error occurs after typing pip install turtle on the command line (prompts the error in line 40 of the setup.py program with turtle in a folder on disk C)
After viewing with IDE (download me to the turtle folder of D disk and open it in setup.py), I found a syntax error: (, ve should be as ve). After modification, the command line still prompted the same error, but the folder name of the upper level of setup.py displayed in the error prompt changed (the format is all pip-install-*), and this error will always occur. Copy the full path to my computer and find that the folder in the error message does not exist.
For a change of thinking, try entering the full library name: pip install turtle-0.0.2, and the command line prompts that the library does not exist. Add the specification, type pip install-e turtle-0.0.2, and the error prompt line: (setup.py not found in the turtle-0.0.2 folder of d:\). This is a problem when unzipping the download materials. Just call up the next layer folder with the same name under the turtle-0.0.2 folder to d:\.
5. Type pip install-e turtle-0.0.2 again and you can see that the command line is running normally and is done.
Thank you for your reading, the above is the content of "how to solve the problem of errors in installing turtle-0.0.2 with pip in Python3.8". After the study of this article, I believe you have a deeper understanding of how to solve the problem of errors in the installation of turtle-0.0.2 in Python3.8 with pip. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.