-
Notifications
You must be signed in to change notification settings - Fork 35
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
SyntaxError: invalid syntax print(f"Reached MAX_STEP: {MAX_STEP} at step: {global_step_value}") #5
Comments
Check you are using Python >=3.6 It is using f-strings.
…On 15 March 2018 at 10:29, idhamari ***@***.***> wrote:
I got many errors related to the print statement.
File "train.py", line 82
print(f"Reached MAX_STEP: {MAX_STEP} at step: {global_step_value}")
^
SyntaxError: invalid syntax
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABaQNnywDLWcvWoHoJZPx8X_3BgIVs35ks5tekJ9gaJpZM4Sr5Tc>
.
|
Thanks for concern and quick reply. I am using python 2.7 (I built all other tools using it). Is there a way to make it works in python 2.7? or shall I rebuild all other tools in python 3? do you think there will be no conflict? |
I think it’s only a few of the print statements I use for python 3.6 features - but can’t promise.
Change them from
print(f”This is the result: {result}, and another result: {result2}”) to
print(“This is the result: {0}, and another result: {1}”.format(result, result2))
etc…
Have you tried using the anaconda python distribution - I find it works very well on windows and Mac for tensor flow and scientific use. No compiling needed, and has recent versions of tensor flow.
… On 16 Mar 2018, at 23:21, idhamari ***@***.***> wrote:
Thanks for concern and quick reply. I am using python 2.7 (I built all other tools using it). Is there a way to make it works in python 2.7? or shall I rebuild all other tools in python 3? do you think there will be no conflict?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Thanks for explaining, I will try your suggestion. I am using pip and Ubuntu 16 system. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got many errors related to the print statement.
File "train.py", line 82
print(f"Reached MAX_STEP: {MAX_STEP} at step: {global_step_value}")
^
SyntaxError: invalid syntax
The text was updated successfully, but these errors were encountered: