Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用的python版本是2还是3 #63

Open
SeanWang918 opened this issue May 9, 2019 · 3 comments
Open

使用的python版本是2还是3 #63

SeanWang918 opened this issue May 9, 2019 · 3 comments

Comments

@SeanWang918
Copy link

使用的python版本是2还是3 ?

@Sephiroth0705
Copy link

根据Print函数来看,是Python3

@Roctey
Copy link

Roctey commented May 13, 2019

3.6 3.7

@BenSYZ
Copy link

BenSYZ commented Jan 14, 2020

可是我在pip3 install turtle 的时候,它报错:

Collecting turtle
  Using cached https://mirrors.aliyun.com/pypi/packages/ff/f0/21a42e9e424d24bdd0e509d5ed3c7dfb8f47d962d9c044dba903b0b4a26f/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 "/tmp/pip-build-yvr1vbws/turtle/setup.py", line 40
        except ValueError, ve:
                         ^
    SyntaxError: invalid syntax
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-yvr1vbws/turtle/

这样看来这个包不是2的吗,怎么在3上运行起来的,我尝试修改后(我是ctrl+z停下来后直接改),在python3.6.9中:

>>>import turtle
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.6/turtle.py", line 107, in <module>
    import tkinter as TK
ModuleNotFoundError: No module named 'tkinter'

请问大家是怎么解决turtle这个包的?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants