先说一下我的基本情况:win10,python3.7。
之前一时兴起想安装turtle库玩一下,其中遇到了很多问题,现总结如下:
首先,先更新“pip”和“setup”,在CMD中分别输入如下命令:
python3 -m pip install --upgrade pip
python install --upgrade setupTools
1. 在CMD使用"pip install turtle"命令却出现下面的状况:
Collecting turtle
Using cached https://files.pythonhosted.org/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-install-hpqxw6_s/turtle/setup.py", line 40
except ValueError, ve:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1