简体   繁体   中英

Syntax Error near unexpected token `(' in alchemyAPI python sdk

i installed alchemyAPI with python 2.7 on the desktop and it runs perfectly but when i saved the file to a live server whenever i try running the example files on aclemy i got the error. "Syntax Error near unexpected token `('" I checked the syntax python syntax and its okay. The syntax error is in creating the instance of the object.I want to ask if there is something wrong with the syntax. I am not an expert of AlchemyAPI in python.Thank You.

# Load the AlchemyAPI module code.
import AlchemyAPI            
# Create an AlchemyAPI object.
alchemyObj = AlchemyAPI.AlchemyAPI()

错误消息Syntax Error near unexpected token ('是bash错误,不是Python错误。您似乎是在bash shell中而不是Python中键入此代码。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM