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

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 "", line 1, in
      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.

 

你可能感兴趣的:(python)