命令"python setup.py egg_info"失败,错误代码为 1 在 C:\Users\kadjo\AppData\Local\Temp\pip-bui



我尝试安装turttle软件包,我得到了这个arror:

C:WINDOWSsystem32>pip install turtle
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:UserskadjoAppDataLocalTemppip-build-p_nzw4hfturtlesetup.py", line 40
except ValueError, ve:
^
SyntaxError: invalid syntax

turtle 很老(最后更新于 2009 年(;它肯定只有 Python2。

except ValueError, ve:的 SyntaxError 意味着您正在尝试使用 Python3 安装它。要使用 turtle,您肯定需要 Python 2.7。

相关内容

最新更新