【Python】turtle安装报错ERROR: Command errored out with exit status 1
生活随笔
收集整理的這篇文章主要介紹了
【Python】turtle安装报错ERROR: Command errored out with exit status 1
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
今天在學python100days經典教程,第一天安個turtle報錯了
PS C:\00Freedom\LearningPractice\Python\Python-100-Days\001> pip install turtle Collecting turtleUsing cached turtle-0.0.2.tar.gz (11 kB)ERROR: Command errored out with exit status 1:command: 'c:\program files\python\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-unj78cbn\\turtle\\setup.py'"'"'; __file__='"'"'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-unj78cbn\\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\ADMINI~1\AppData\Local\Temp\pip-install-unj78cbn\turtle\pip-egg-info'cwd: C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-unj78cbn\turtle\Complete output (6 lines):Traceback (most recent call last):File "<string>", line 1, in <module>File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-unj78cbn\turtle\setup.py", line 40except 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.最終咋解決?
下載本地安裝
turtle下載鏈接
然后通過對應目錄安裝
日志
PS D:\Python\Python-100-Days\001> pip install D:\turtle-0.0.2 Processing D:\turtle-0.0.2 Collecting Twisted>=8.0.1Downloading Twisted-19.10.0-cp37-cp37m-win_amd64.whl (3.1 MB)|████████████████████████████████| 3.1 MB 218 kB/s Collecting PyYAML>=3.0.8Downloading PyYAML-5.3-cp37-cp37m-win_amd64.whl (215 kB)|████████████████████████████████| 215 kB 273 kB/s Collecting hyperlink>=17.1.1Downloading hyperlink-19.0.0-py2.py3-none-any.whl (38 kB) Collecting attrs>=17.4.0Downloading attrs-19.3.0-py2.py3-none-any.whl (39 kB) Collecting zope.interface>=4.4.2Downloading zope.interface-4.7.1-cp37-cp37m-win_amd64.whl (134 kB)|████████████████████████████████| 134 kB 187 kB/s Collecting Automat>=0.3.0Downloading Automat-20.2.0-py2.py3-none-any.whl (31 kB) Collecting constantly>=15.1Downloading constantly-15.1.0-py2.py3-none-any.whl (7.9 kB) Collecting PyHamcrest>=1.9.0Downloading PyHamcrest-2.0.0-py3-none-any.whl (51 kB)|████████████████████████████████| 51 kB 38 kB/s Collecting incremental>=16.10.1Downloading incremental-17.5.0-py2.py3-none-any.whl (16 kB) Collecting idna>=2.5Downloading idna-2.9-py2.py3-none-any.whl (58 kB)|████████████████████████████████| 58 kB 158 kB/s Requirement already satisfied: setuptools in c:\program files\python\python37\lib\site-packages (from zope.interface>=4.4.2->Twisted>=8.0.1->turtle==0.0.2) (40.8.0) Requirement already satisfied: six in c:\users\administrator\appdata\roaming\python\python37\site-packages (from Automat>=0.3.0->Twisted>=8.0.1->turtle==0.0.2) (1.12.0) Installing collected packages: idna, hyperlink, attrs, zope.interface, Automat, constantly, PyHamcrest, incremental, Twisted, PyYAML, turtleRunning setup.py install for turtle ... done Successfully installed Automat-20.2.0 PyHamcrest-2.0.0 PyYAML-5.3 Twisted-19.10.0 attrs-19.3.0 constantly-15.1.0 hyperlink-19.0.0 idna-2.9 incremental-17.5.0 turtle-0.0.2 zope.interface-4.7.1 PS D:\Python\Python-100-Days\001>解決。
總結
以上是生活随笔為你收集整理的【Python】turtle安装报错ERROR: Command errored out with exit status 1的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: xml速成
- 下一篇: 2022-2027年中国星级酒店市场竞争