【问题标题】:I am getting a error while installing turtle in pycharm在 pycharm 中安装 turtle 时出现错误
【发布时间】:2020-09-12 19:59:04
【问题描述】:

我正在尝试在pycharm中安装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:\Users\Ptr\AppData\Local\Temp\pycharm-packaging\turtle\setup.py", line 40
        except ValueError, ve:
        except ValueError, ve:
                         ^
    SyntaxError: invalid syntax

    ----------------------------------------

Command "python setup.py egg_info" failed with error code 1 

我不知道该怎么办,请帮帮我。

【问题讨论】:

    标签: python python-3.x pip pycharm python-turtle


    【解决方案1】:

    pip 从 PyPI 安装 turtle 0.0.2。 2009 年发布。代码显然是 Python2-only。

    您不需要安装 turtle — 至少从 Python 2.6 开始就是 a module from the standard library。只需导入并使用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-10
      • 2021-04-27
      • 2019-05-27
      • 2019-03-14
      • 2017-08-09
      • 2020-06-16
      • 2020-05-15
      • 1970-01-01
      相关资源
      最近更新 更多