您的位置:首页 > 编程语言 > Python开发

求解决python在cmd用pip安装第三方库turtle失败

2020-04-01 12:24 597 查看

1、pip已经升级

2、https://www.lfd.uci.edu/~gohlke/pythonlibs/

中找不到turtle库

 

C:\Users\Administrator>pip install turtle
Collecting turtle
  Using cached turtle-0.0.2.tar.gz (11 kB)
    ERROR: Command errored out with exit status 1:
     command: 'f:\python\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-g9jl900i\\turtle\\setup.py'"'"'; __file__='"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-g9jl900i\\turtle\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Administrator\AppData\Local\Temp\pip-install-g9jl900i\turtle\pip-egg-info'
         cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-g9jl900i\turtle\
    Complete output (6 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\Administrator\AppData\Local\Temp\pip-install-g9jl900i\turtle\setup.py", line 40
        except ValueError, ve:
                         ^
    SyntaxError: invalid syntax
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

 

  • 点赞
  • 收藏
  • 分享
  • 文章举报
佐k 发布了1 篇原创文章 · 获赞 0 · 访问量 138 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: