Victrid / splatplost

A software-based SplatPost plotter.
GNU General Public License v3.0
191 stars 17 forks source link

SyntaxError on f-string #2

Closed Charlie441324219 closed 3 years ago

Charlie441324219 commented 3 years ago

Error occured when running python ./insgen.py IMAGE.png IMAGE.order:

File "./insgen.py", line 131
    f"Complete. Original difficulty: {original_num}, Optimized difficulty:{optimized_num}\n")
                                                                                           ^
SyntaxError: invalid syntax
day210 commented 3 years ago

use python3

Victrid commented 3 years ago

Please use Python 3.6+. OS with lower versions of python3 is rare. This is commonly caused because some OS will use python2 as its default python intepreter, try substitute python with python3 above before you installation. Python 2 has reached its end of life since Jan 2020.


请使用Python 3.6+。 python版本这么低是很少见的,运行不了通常是因为有些操作系统会默认使用Python2作为python命令的默认解释器,在安python3前可以先将命令中的python 换为 python3 试试,说不定系统本身就带了Python 3。Python 2支持生命周期已经在2020年1月截止。