Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
208 views
in Technique[技术] by (71.8m points)

I cant run Python file on Ubuntu


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The script you seem to be running is likely written in python 2, where print did not require parentheses. You are trying to run it using python 3. If the script is not too long, I would suggest you change the print statements and try again. You might or might not get more errors, especially depending on which libraries were used.

Another way is to download Python 2, but I would suggest against it as it has reached end of life.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...